Source-Changes-HG archive

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

[src/trunk]: src/etc/rc.d - use checkyesno in $start_precmd and change start_...



details:   https://anonhg.NetBSD.org/src/rev/16c9c59a3030
branches:  trunk
changeset: 485527:16c9c59a3030
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Apr 30 12:21:00 2000 +0000

description:
- use checkyesno in $start_precmd and change start_cmd to `postfix start'
- use $extra_commands instead of passing "reload" to run_rc_command

diffstat:

 etc/rc.d/postfix |  22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diffs (40 lines):

diff -r 997b457cc643 -r 16c9c59a3030 etc/rc.d/postfix
--- a/etc/rc.d/postfix  Sun Apr 30 12:19:07 2000 +0000
+++ b/etc/rc.d/postfix  Sun Apr 30 12:21:00 2000 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postfix,v 1.2 2000/04/27 20:58:26 veego Exp $
+# $NetBSD: postfix,v 1.3 2000/04/30 12:21:00 lukem Exp $
 #
 
 # PROVIDE: mail
@@ -13,19 +13,17 @@
 . /etc/rc.subr
 . /etc/rc.conf
 
-postfix_start_precmd() {
-       postfix start
-       return 1
-}
-start_precmd="postfix_start_precmd"
+name="postfix"
+required_files="/etc/${name}/main.cf"
+extra_commands="reload"
 
-stop_precmd="checkyesno postfix"
+start_precmd="checkyesno postfix"
+start_cmd="postfix start"
+
+stop_precmd=$start_precmd
 stop_cmd="postfix stop"
 
-reload_precmd="checkyesno postfix"
+reload_precmd=$start_precmd
 reload_cmd="postfix reload"
 
-name="postfix"
-required_files="/etc/${name}/main.cf"
-
-run_rc_command "$1" "reload"
+run_rc_command "$1"



Home | Main Index | Thread Index | Old Index