summaryrefslogtreecommitdiff
path: root/app-misc/conmux/files/conmux.initd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
commitd87262dd706fec50cd150aab3e93883b6337466d (patch)
tree246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-misc/conmux/files/conmux.initd
parent71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/conmux/files/conmux.initd')
-rw-r--r--app-misc/conmux/files/conmux.initd39
1 files changed, 0 insertions, 39 deletions
diff --git a/app-misc/conmux/files/conmux.initd b/app-misc/conmux/files/conmux.initd
deleted file mode 100644
index b74fd28b969c..000000000000
--- a/app-misc/conmux/files/conmux.initd
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
- use net
- need conmux-registry
-}
-
-checkconfig() {
- if [ ! -f ${CONMUX_CONFIG} ]; then
- eerror ""
- eerror "No conmux configuration file was found!"
- eerror "Please read the conmux README file."
- eerror ""
- return 1
- fi
- # Sane default
- if [ -z ${CONMUX_LOG} ]; then
- CONMUX_LOG="/var/log/conmux.log"
- fi
- return 0
-}
-
-start() {
- checkconfig || exit 1
- # Make sure conmux finds everything
- export PATH="${PATH}:/usr/share/conmux/drivers:/usr/share/conmux/helpers"
- ebegin "Starting conmux daemon"
- start-stop-daemon -m -b --start -1 ${CONMUX_LOG} \
- -2 ${CONMUX_LOG} -p /run/${SVCNAME}.pid \
- --exec /usr/sbin/conmux -- ${CONMUX_CONFIG}
-}
-
-stop() {
- ebegin "Stopping conmux daemon"
- start-stop-daemon --stop --pidfile /run/${SVCNAME}.pid
- eend $?
-}