diff options
Diffstat (limited to 'net-news/nntpswitch/files/nntpswitch.init.d')
-rw-r--r-- | net-news/nntpswitch/files/nntpswitch.init.d | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net-news/nntpswitch/files/nntpswitch.init.d b/net-news/nntpswitch/files/nntpswitch.init.d new file mode 100644 index 000000000000..9b5a8be712a0 --- /dev/null +++ b/net-news/nntpswitch/files/nntpswitch.init.d @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-news/nntpswitch/files/nntpswitch.init.d,v 1.1 2004/12/01 21:26:13 swegener Exp $ + +depend() { + use net +} + +start() { + ebegin "Starting NNTP Switch" + /usr/sbin/nntpswitchd &>/dev/null + eend $? +} + +stop() { + ebegin "Stopping NNTP Switch" + start-stop-daemon --stop --quiet --pidfile /var/run/nntpswitchd.pid + eend $? + rm -f /var/run/nntpswitchd.pid +} |