diff options
Diffstat (limited to 'net-dialup/isdn4k-utils/files/3.6_pre20041219/isdnlog.initd')
-rw-r--r-- | net-dialup/isdn4k-utils/files/3.6_pre20041219/isdnlog.initd | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/net-dialup/isdn4k-utils/files/3.6_pre20041219/isdnlog.initd b/net-dialup/isdn4k-utils/files/3.6_pre20041219/isdnlog.initd deleted file mode 100644 index e912179cd836..000000000000 --- a/net-dialup/isdn4k-utils/files/3.6_pre20041219/isdnlog.initd +++ /dev/null @@ -1,33 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/isdn4k-utils/files/3.6_pre20041219/isdnlog.initd,v 1.1 2004/12/23 22:12:34 mrness Exp $ - -opts="start stop" - -depend() { - need isdn -} - -start() { - local CONTR="${myservice#*.contr}" CTRL=$((CONTR * 2)) - local CONFIG="/etc/isdn/isdnlog.isdnctrl${CTRL}.options" - [ -e "$CONFIG" ] || CONFIG="/etc/isdn/isdnlog.options.contr${CONTR}" - - if [ ! -e "$CONFIG" ] ; then - eerror "You're missing ${CONFIG}" - return 1 - fi - - ebegin "Starting ISDNLOG for controller #${CONTR}" - start-stop-daemon --start --quiet --pidfile "/var/run/isdnlog.isdnctrl${CTRL}.pid" \ - --exec /usr/sbin/isdnlog -- ${ISDNLOG_OPTIONS} -f "${CONFIG}" "/dev/isdnctrl${CTRL}" - eend $? -} - -stop() { - local CONTR="${myservice#*.contr}" CTRL=$((CONTR * 2)) - ebegin "Stopping ISDNLOG for controller #${CONTR}" - start-stop-daemon --stop --quiet --retry 5 --pidfile "/var/run/isdnlog.isdnctrl${CTRL}.pid" - eend $? -} |