diff options
Diffstat (limited to 'sys-fs/owfs/files/owhttpd.initd-r1')
-rw-r--r-- | sys-fs/owfs/files/owhttpd.initd-r1 | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sys-fs/owfs/files/owhttpd.initd-r1 b/sys-fs/owfs/files/owhttpd.initd-r1 deleted file mode 100644 index cf3af54f50e9..000000000000 --- a/sys-fs/owfs/files/owhttpd.initd-r1 +++ /dev/null @@ -1,35 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later - -INSTANCE=${SVCNAME#*.} -PROGRAM=${SVCNAME%%.*} -PIDFILE=${PIDFILE:-/run/owfs/${PROGRAM}.pid} -OWUID=${OWUID:-owfs} -OWGID=${OWGID:-owfs} - -depend() { - need owserver - use logger -} - -start_pre() { - checkpath -d -m 0750 -o ${OWUID}:${OWGID} "$(dirname ${PIDFILE})" -} - -start() { - ebegin "Starting ${SVCNAME}" - start-stop-daemon --start --exec /usr/bin/${PROGRAM} \ - --pidfile ${PIDFILE} --user ${OWUID}:${OWGID} -- \ - --pid-file ${PIDFILE} \ - --background --error_print 1 \ - ${OWHTTPD_OPTS:---nozero -p 127.0.0.1:4380 -s 127.0.0.1:4304} - eend $? -} - -stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop --exec /usr/bin/${PROGRAM} \ - --pidfile ${PIDFILE} -u ${OWUID} - eend $? -} |