2000-04-26 09:28:03 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2000-09-19 17:04:38 +04:00
|
|
|
# $NetBSD: postfix,v 1.5 2000/09/19 13:04:39 lukem Exp $
|
2000-04-26 09:28:03 +04:00
|
|
|
#
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2000-04-30 16:21:00 +04:00
|
|
|
name="postfix"
|
2000-09-19 17:04:38 +04:00
|
|
|
rcvar=$name
|
2000-04-30 16:21:00 +04:00
|
|
|
required_files="/etc/${name}/main.cf"
|
|
|
|
start_cmd="postfix start"
|
2000-04-26 09:28:03 +04:00
|
|
|
stop_cmd="postfix stop"
|
|
|
|
reload_cmd="postfix reload"
|
2000-09-19 17:04:38 +04:00
|
|
|
extra_commands="reload"
|
2000-04-26 09:28:03 +04:00
|
|
|
|
2000-05-13 12:45:06 +04:00
|
|
|
load_rc_config $name
|
2000-04-30 16:21:00 +04:00
|
|
|
run_rc_command "$1"
|