Home | History | Annotate | Line # | Download | only in rc.d
postfix revision 1.1
      1  1.1  thorpej #!/bin/sh
      2  1.1  thorpej #
      3  1.1  thorpej # $NetBSD: postfix,v 1.1 2000/04/26 05:28:04 thorpej 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.1  thorpej stop_cmd="postfix stop"
     23  1.1  thorpej 
     24  1.1  thorpej reload_cmd="postfix reload"
     25  1.1  thorpej 
     26  1.1  thorpej name="postfix"
     27  1.1  thorpej required_files="/etc/${name}/main.cf"
     28  1.1  thorpej 
     29  1.1  thorpej run_rc_command "$1" "reload"
     30