summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-03-13 01:00:50 +0000
committerMike Frysinger <vapier@gentoo.org>2004-03-13 01:00:50 +0000
commited2f638524389cb598bb42842004ef27e7ad5a48 (patch)
treef6c44d9586d386a784838d3b1f4ba4ab0ce1f51e /net-misc/mrouted/files
parentinitial ebuild #43919 (diff)
downloadgentoo-2-ed2f638524389cb598bb42842004ef27e7ad5a48.tar.gz
gentoo-2-ed2f638524389cb598bb42842004ef27e7ad5a48.tar.bz2
gentoo-2-ed2f638524389cb598bb42842004ef27e7ad5a48.zip
forgot to add init.d script
Diffstat (limited to 'net-misc/mrouted/files')
-rw-r--r--net-misc/mrouted/files/mrouted.rc30
1 files changed, 30 insertions, 0 deletions
diff --git a/net-misc/mrouted/files/mrouted.rc b/net-misc/mrouted/files/mrouted.rc
new file mode 100644
index 000000000000..6e15361d69bb
--- /dev/null
+++ b/net-misc/mrouted/files/mrouted.rc
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/mrouted/files/mrouted.rc,v 1.1 2004/03/13 01:00:50 vapier Exp $
+
+depend() {
+ use logger
+ need net
+}
+
+checkconfig() {
+ if [ ! -e /etc/mrouted.conf ] ; then
+ eerror "You need an /etc/mrouted.conf file to run mrouted"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting mrouted"
+ start-stop-daemon --start --quiet --pidfile /var/run/mrouted.pid \
+ --startas /usr/bin/mrouted -- -c /etc/mrouted.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping mrouted"
+ start-stop-daemon --stop --quiet --pidfile /var/run/mrouted.pid
+ eend $?
+}