NetBSD/etc/rc.d/postfix
lukem 32c9a44095 - use checkyesno in $start_precmd and change start_cmd to `postfix start'
- use $extra_commands instead of passing "reload" to run_rc_command
2000-04-30 12:21:00 +00:00

30 lines
559 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: postfix,v 1.3 2000/04/30 12:21:00 lukem Exp $
#
# PROVIDE: mail
# REQUIRE: LOGIN
# we could do this, but make mail start late, so that things like
# .forward's are not processed until the system is fully operational
## REQUIRE: DAEMON
. /etc/rc.subr
. /etc/rc.conf
name="postfix"
required_files="/etc/${name}/main.cf"
extra_commands="reload"
start_precmd="checkyesno postfix"
start_cmd="postfix start"
stop_precmd=$start_precmd
stop_cmd="postfix stop"
reload_precmd=$start_precmd
reload_cmd="postfix reload"
run_rc_command "$1"