Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Store the full path to the /usr/sbin/postfix in $po...
details: https://anonhg.NetBSD.org/src/rev/d3c04decc9b0
branches: trunk
changeset: 565431:d3c04decc9b0
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Apr 08 06:15:27 2004 +0000
description:
Store the full path to the /usr/sbin/postfix in $postfix_command
and use the latter postfix_op() to implement start/stop/reload.
(We generally use full paths in rc.d scripts.) Problem noted by Bill Squier.
diffstat:
etc/rc.d/postfix | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 0e1c99d87e3f -r d3c04decc9b0 etc/rc.d/postfix
--- a/etc/rc.d/postfix Thu Apr 08 06:12:43 2004 +0000
+++ b/etc/rc.d/postfix Thu Apr 08 06:15:27 2004 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: postfix,v 1.7 2003/01/31 06:47:16 lukem Exp $
+# $NetBSD: postfix,v 1.8 2004/04/08 06:15:27 lukem Exp $
#
# PROVIDE: mail
@@ -12,11 +12,12 @@
name="postfix"
rcvar=$name
+postfix_command="/usr/sbin/${name}"
required_files="/etc/${name}/main.cf"
start_precmd="postfix_precmd"
-start_cmd="${name} "'${rc_arg}'
-stop_cmd=$start_cmd
-reload_cmd=$start_cmd
+start_cmd="postfix_op"
+stop_cmd="postfix_op"
+reload_cmd="postfix_op"
extra_commands="reload"
spooletcdir="/var/spool/${name}/etc"
required_dirs=$spooletcdir
@@ -37,5 +38,10 @@
done
}
+postfix_op()
+{
+ ${postfix_command} ${rc_arg}
+}
+
load_rc_config $name
run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index