From 01c28c7f100573ecb2977dab4e7e1a165f8fdf9e Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 5 Apr 2001 23:54:59 +0000 Subject: [PATCH] Add a startup script for altqd(8). --- etc/rc.d/Makefile | 4 ++-- etc/rc.d/NETWORK | 4 ++-- etc/rc.d/altqd | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+), 4 deletions(-) create mode 100755 etc/rc.d/altqd diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile index 794c89e5514b..779097ef92da 100755 --- a/etc/rc.d/Makefile +++ b/etc/rc.d/Makefile @@ -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 -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 --git a/etc/rc.d/NETWORK b/etc/rc.d/NETWORK index e22202e84840..0703d06ee5f0 100644 --- a/etc/rc.d/NETWORK +++ b/etc/rc.d/NETWORK @@ -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 --git a/etc/rc.d/altqd b/etc/rc.d/altqd new file mode 100755 index 000000000000..4261ed308bf1 --- /dev/null +++ b/etc/rc.d/altqd @@ -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"