Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d Add a startup script for altqd(8).



details:   https://anonhg.NetBSD.org/src/rev/e1c515767e69
branches:  trunk
changeset: 508087:e1c515767e69
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Apr 05 23:54:59 2001 +0000

description:
Add a startup script for altqd(8).

diffstat:

 etc/rc.d/Makefile |   4 ++--
 etc/rc.d/NETWORK  |   4 ++--
 etc/rc.d/altqd    |  20 ++++++++++++++++++++
 3 files changed, 24 insertions(+), 4 deletions(-)

diffs (54 lines):

diff -r 30ef069adcd7 -r e1c515767e69 etc/rc.d/Makefile
--- a/etc/rc.d/Makefile Thu Apr 05 23:04:10 2001 +0000
+++ b/etc/rc.d/Makefile Thu Apr 05 23:54:59 2001 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.18 2001/04/05 17:04:03 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2001/04/05 23:54:59 thorpej Exp $
 
 .include <bsd.own.mk>
 
-FILES= DAEMON LOGIN NETWORK SERVERS accounting amd apmd bootparams \
+FILES= DAEMON LOGIN NETWORK SERVERS accounting altqd amd apmd bootparams \
        bootconf.sh ccd cleartmp cron dhclient dhcpd dhcrelay dmesg \
        fsck inetd ipfilter ipmon ipnat ipsec isdnd kdc ldconfig \
        lkm1 lkm2 lkm3 local lpd mopd motd mountall mountcritlocal \
diff -r 30ef069adcd7 -r e1c515767e69 etc/rc.d/NETWORK
--- a/etc/rc.d/NETWORK  Thu Apr 05 23:04:10 2001 +0000
+++ b/etc/rc.d/NETWORK  Thu Apr 05 23:54:59 2001 +0000
@@ -1,10 +1,10 @@
 #!/bin/sh
 #
-# $NetBSD: NETWORK,v 1.1 2000/07/26 00:11:49 lukem Exp $
+# $NetBSD: NETWORK,v 1.2 2001/04/05 23:55:00 thorpej Exp $
 #
 
 # PROVIDE: NETWORK
-# REQUIRE: network dhclient
+# REQUIRE: network dhclient altqd
 
 #      This is a dummy dependancy, for services which require networking
 #      to be operational before starting.
diff -r 30ef069adcd7 -r e1c515767e69 etc/rc.d/altqd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/rc.d/altqd    Thu Apr 05 23:54:59 2001 +0000
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# $NetBSD: altqd,v 1.1 2001/04/05 23:55:00 thorpej Exp $
+#
+
+# PROVIDE: altqd
+# REQUIRE: network mountcritlocal dhclient
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="altqd"
+rcvar=$name
+command="/usr/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+required_files="/etc/altq.conf"
+extra_commands="reload"
+
+load_rc_config $name
+run_rc_command "$1"



Home | Main Index | Thread Index | Old Index