1 1.1 thorpej #!/bin/sh 2 1.1 thorpej # 3 1.3 lukem # $NetBSD: postfix,v 1.3 2000/04/30 12:21:00 lukem Exp $ 4 1.1 thorpej # 5 1.1 thorpej 6 1.1 thorpej # PROVIDE: mail 7 1.1 thorpej # REQUIRE: LOGIN 8 1.1 thorpej 9 1.1 thorpej # we could do this, but make mail start late, so that things like 10 1.1 thorpej # .forward's are not processed until the system is fully operational 11 1.1 thorpej ## REQUIRE: DAEMON 12 1.1 thorpej 13 1.1 thorpej . /etc/rc.subr 14 1.1 thorpej . /etc/rc.conf 15 1.1 thorpej 16 1.3 lukem name="postfix" 17 1.3 lukem required_files="/etc/${name}/main.cf" 18 1.3 lukem extra_commands="reload" 19 1.3 lukem 20 1.3 lukem start_precmd="checkyesno postfix" 21 1.3 lukem start_cmd="postfix start" 22 1.1 thorpej 23 1.3 lukem stop_precmd=$start_precmd 24 1.1 thorpej stop_cmd="postfix stop" 25 1.1 thorpej 26 1.3 lukem reload_precmd=$start_precmd 27 1.1 thorpej reload_cmd="postfix reload" 28 1.1 thorpej 29 1.3 lukem run_rc_command "$1" 30