Source-Changes-HG archive

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

[src/trunk]: src/etc/rc.d Implement start_cmd as:



details:   https://anonhg.NetBSD.org/src/rev/72027ec69951
branches:  trunk
changeset: 542511:72027ec69951
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Jan 31 06:47:16 2003 +0000

description:
Implement start_cmd as:
        start_cmd="${name} "'${rc_arg}'
and stop_cmd & reload_cmd as:
        stop_cmd=$start_cmd
        reload_cmd=$start_cmd
(Just to be tricky)

diffstat:

 etc/rc.d/postfix |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (24 lines):

diff -r 7049e9b02c5a -r 72027ec69951 etc/rc.d/postfix
--- a/etc/rc.d/postfix  Fri Jan 31 05:25:57 2003 +0000
+++ b/etc/rc.d/postfix  Fri Jan 31 06:47:16 2003 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postfix,v 1.6 2002/02/12 02:19:27 lukem Exp $
+# $NetBSD: postfix,v 1.7 2003/01/31 06:47:16 lukem Exp $
 #
 
 # PROVIDE: mail
@@ -14,9 +14,9 @@
 rcvar=$name
 required_files="/etc/${name}/main.cf"
 start_precmd="postfix_precmd"
-start_cmd="${name} start"
-stop_cmd="${name} stop"
-reload_cmd="${name} reload"
+start_cmd="${name} "'${rc_arg}'
+stop_cmd=$start_cmd
+reload_cmd=$start_cmd
 extra_commands="reload"
 spooletcdir="/var/spool/${name}/etc"
 required_dirs=$spooletcdir



Home | Main Index | Thread Index | Old Index