diff options
Diffstat (limited to 'net-im/minbif/files/minbif.initd')
-rw-r--r-- | net-im/minbif/files/minbif.initd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net-im/minbif/files/minbif.initd b/net-im/minbif/files/minbif.initd new file mode 100644 index 000000000000..a2d5649bfe1f --- /dev/null +++ b/net-im/minbif/files/minbif.initd @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +MINBIF_EXEC="/usr/bin/minbif" + +depend() { + need logger net +} + +start() { + ebegin "Starting minbif" + start-stop-daemon --start --startas ${MINBIF_EXEC} \ + -c minbif:minbif --exec ${MINBIF_EXEC} -- \ + /etc/minbif/minbif.conf + eend $? +} + +stop() { + ebegin "Stopping minbif" + start-stop-daemon --stop --exec ${MINBIF_EXEC} + eend $? +} |