
This allows us or a user to change the configuration file method in one place - rc.subr - without having to edit all of the rc.d/* files.
30 lines
565 B
Bash
Executable File
30 lines
565 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: postfix,v 1.4 2000/05/13 08:45:08 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
|
|
|
|
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"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|