diff options
Diffstat (limited to 'sys-apps/netkit-base/files/inetd.rc6')
-rw-r--r-- | sys-apps/netkit-base/files/inetd.rc6 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys-apps/netkit-base/files/inetd.rc6 b/sys-apps/netkit-base/files/inetd.rc6 new file mode 100644 index 000000000000..652362507fc3 --- /dev/null +++ b/sys-apps/netkit-base/files/inetd.rc6 @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + use net +} + +start() { + ebegin "Starting inetd" + ( + # workaround for #25754 + unset -f `declare -F | sed 's:declare -f::g'` + start-stop-daemon --start --quiet --pidfile /var/run/inetd.pid --exec /usr/sbin/inetd + ) + eend $? +} + +stop() { + ebegin "Stopping inetd" + start-stop-daemon --stop --quiet --pidfile /var/run/inetd.pid + eend $? +} |