Source-Changes-HG archive

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

[src/netbsd-1-5]: src/etc/rc.d pull up rev 1.3 (approved by thorpej):



details:   https://anonhg.NetBSD.org/src/rev/db49a4ba84ae
branches:  netbsd-1-5
changeset: 489619:db49a4ba84ae
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Oct 02 01:07:16 2000 +0000

description:
pull up rev 1.3 (approved by thorpej):
        - always use $rcvar to determine the name of the var to checkyesno
        - fix force*

diffstat:

 etc/rc.d/accounting |  5 ++---
 etc/rc.d/cleartmp   |  4 ++--
 etc/rc.d/ipmon      |  3 ++-
 etc/rc.d/ntpd       |  3 ++-
 etc/rc.d/savecore   |  4 ++--
 5 files changed, 10 insertions(+), 9 deletions(-)

diffs (101 lines):

diff -r 80c160bc311c -r db49a4ba84ae etc/rc.d/accounting
--- a/etc/rc.d/accounting       Mon Oct 02 01:06:36 2000 +0000
+++ b/etc/rc.d/accounting       Mon Oct 02 01:07:16 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: accounting,v 1.2 2000/05/13 08:45:06 lukem Exp $
+# $NetBSD: accounting,v 1.2.4.1 2000/10/02 01:07:16 lukem Exp $
 #
 
 # PROVIDE: accounting
@@ -9,9 +9,8 @@
 . /etc/rc.subr
 
 name="accounting"
-start_precmd="checkyesno accounting"
+rcvar=$name
 start_cmd="accounting_start"
-stop_precmd=$start_precmd
 stop_cmd="accounting_stop"
 
 accounting_start()
diff -r 80c160bc311c -r db49a4ba84ae etc/rc.d/cleartmp
--- a/etc/rc.d/cleartmp Mon Oct 02 01:06:36 2000 +0000
+++ b/etc/rc.d/cleartmp Mon Oct 02 01:07:16 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: cleartmp,v 1.2 2000/05/13 08:45:06 lukem Exp $
+# $NetBSD: cleartmp,v 1.2.4.1 2000/10/02 01:07:17 lukem Exp $
 #
 
 # PROVIDE: cleartmp
@@ -9,8 +9,8 @@
 . /etc/rc.subr
 
 name="cleartmp"
+rcvar="clear_tmp"
 start_cmd="cleartmp_start"
-start_precmd="checkyesno clear_tmp"
 stop_cmd=":"
 
 cleartmp_start()
diff -r 80c160bc311c -r db49a4ba84ae etc/rc.d/ipmon
--- a/etc/rc.d/ipmon    Mon Oct 02 01:06:36 2000 +0000
+++ b/etc/rc.d/ipmon    Mon Oct 02 01:07:16 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: ipmon,v 1.2 2000/05/13 08:45:07 lukem Exp $
+# $NetBSD: ipmon,v 1.2.4.1 2000/10/02 01:07:17 lukem Exp $
 #
 
 # PROVIDE: ipmon
@@ -9,6 +9,7 @@
 . /etc/rc.subr
 
 name="ipmon"
+rcvar=$name
 command="/usr/sbin/${name}"
 command_args="&"
 
diff -r 80c160bc311c -r db49a4ba84ae etc/rc.d/ntpd
--- a/etc/rc.d/ntpd     Mon Oct 02 01:06:36 2000 +0000
+++ b/etc/rc.d/ntpd     Mon Oct 02 01:07:16 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: ntpd,v 1.2 2000/05/13 08:45:07 lukem Exp $
+# $NetBSD: ntpd,v 1.2.4.1 2000/10/02 01:07:17 lukem Exp $
 #
 
 # PROVIDE: ntpd
@@ -9,6 +9,7 @@
 . /etc/rc.subr
 
 name="ntpd"
+rcvar=$name
 command="/usr/sbin/${name}"
 pidfile="/var/run/${name}.pid"
 required_files="/etc/ntp.conf"
diff -r 80c160bc311c -r db49a4ba84ae etc/rc.d/savecore
--- a/etc/rc.d/savecore Mon Oct 02 01:06:36 2000 +0000
+++ b/etc/rc.d/savecore Mon Oct 02 01:07:16 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: savecore,v 1.2 2000/05/13 08:45:09 lukem Exp $
+# $NetBSD: savecore,v 1.2.4.1 2000/10/02 01:07:18 lukem Exp $
 #
 
 # PROVIDE: savecore
@@ -9,7 +9,7 @@
 . /etc/rc.subr
 
 name="savecore"
-start_precmd="checkyesno savecore"
+rcvar=$name
 start_cmd="savecore_start"
 stop_cmd=":"
 



Home | Main Index | Thread Index | Old Index