Home | History | Annotate | Line # | Download | only in rc.d
postfix revision 1.2
      1  1.1  thorpej #!/bin/sh
      2  1.1  thorpej #
      3  1.2    veego # $NetBSD: postfix,v 1.2 2000/04/27 20:58:26 veego 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.1  thorpej postfix_start_precmd() {
     17  1.1  thorpej 	postfix start
     18  1.1  thorpej 	return 1
     19  1.1  thorpej }
     20  1.1  thorpej start_precmd="postfix_start_precmd"
     21  1.1  thorpej 
     22  1.2    veego stop_precmd="checkyesno postfix"
     23  1.1  thorpej stop_cmd="postfix stop"
     24  1.1  thorpej 
     25  1.2    veego reload_precmd="checkyesno postfix"
     26  1.1  thorpej reload_cmd="postfix reload"
     27  1.1  thorpej 
     28  1.1  thorpej name="postfix"
     29  1.1  thorpej required_files="/etc/${name}/main.cf"
     30  1.1  thorpej 
     31  1.1  thorpej run_rc_command "$1" "reload"
     32