diff options
author | Johannes Huber <johu@gentoo.org> | 2018-04-25 07:07:29 +0200 |
---|---|---|
committer | Johannes Huber <johu@gentoo.org> | 2018-04-25 07:07:29 +0200 |
commit | 7e59eb971d6c83343ba5c3173ae48bb11acc5aa3 (patch) | |
tree | 89b44cf8c43a8b1953f6058bfcb0fb1c9c5e21b1 /net-irc/quassel/files/quasselcore.init | |
parent | dev-ruby/dotenv: add 2.4.0 (diff) | |
download | gentoo-7e59eb971d6c83343ba5c3173ae48bb11acc5aa3.tar.gz gentoo-7e59eb971d6c83343ba5c3173ae48bb11acc5aa3.tar.bz2 gentoo-7e59eb971d6c83343ba5c3173ae48bb11acc5aa3.zip |
net-irc/quassel: Remove 0.12.4 (r0)
Bug: https://bugs.gentoo.org/603414
Bug: https://bugs.gentoo.org/653834
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'net-irc/quassel/files/quasselcore.init')
-rw-r--r-- | net-irc/quassel/files/quasselcore.init | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/net-irc/quassel/files/quasselcore.init b/net-irc/quassel/files/quasselcore.init deleted file mode 100644 index 8e66dff8ca32..000000000000 --- a/net-irc/quassel/files/quasselcore.init +++ /dev/null @@ -1,62 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - need localmount net - after bootmisc postgresql -} - -CORE="$(which quasselcore)" -PID="/var/run/quassel.pid" -LOGFILE=${LOGFILE:-"/var/log/quassel.log"} -CONFIGDIR=${CONFIGDIR:-"/var/lib/quassel"} -QUASSEL_USER=${QUASSEL_USER:-"quassel"} - -checkconfig() { - # set defaults - LOGLEVEL=${LOGLEVEL:-"Info"} - - # check config folder - if [ ! -d "${CONFIGDIR}" ]; then - mkdir "${CONFIGDIR}" || return 1 - fi - # permissions always changed just to avoid runtime issues - chown -R "${QUASSEL_USER}":"${QUASSEL_USER}" "${CONFIGDIR}" || return 1 - - # check log file - if [ ! -e "${LOGFILE}" ]; then - touch "${LOGFILE}" || return 1 - fi - # permissions always changed just to avoid runtime issues - chown "${QUASSEL_USER}":"${QUASSEL_USER}" "${LOGFILE}" || return 1 -} - -start() { - checkconfig || return 1 - - ebegin "Starting Quassel Core" - - if [ -n "${RC_UNAME}" ]; then - # running on baselayout-2/openrc - start-stop-daemon --start --user "${QUASSEL_USER}" --background --make-pidfile \ - --pidfile "${PID}" \ - --exec "${CORE}" -- --logfile="${LOGFILE}" --loglevel="${LOGLEVEL}" \ - ${LISTEN:+--listen="${LISTEN}"} ${PORT:+--port="${PORT}"} \ - --configdir="${CONFIGDIR}" - else - # running on baselayout-1 - start-stop-daemon --start --chuid "${QUASSEL_USER}" --background --make-pidfile \ - --pidfile "${PID}" --env HOME="${CONFIGDIR}" \ - --exec "${CORE}" -- --logfile="${LOGFILE}" --loglevel="${LOGLEVEL}" \ - ${LISTEN:+--listen="${LISTEN}"} ${PORT:+--port="${PORT}"} \ - --configdir="${CONFIGDIR}" - fi - eend $? -} - -stop() { - ebegin "Stopping Quassel Core" - start-stop-daemon --stop --pidfile "${PID}" --exec "${CORE}" - eend $? -} |