Home | History | Annotate | Line # | Download | only in rc.d
postfix revision 1.4
      1  1.1  thorpej #!/bin/sh
      2  1.1  thorpej #
      3  1.4    lukem # $NetBSD: postfix,v 1.4 2000/05/13 08:45:08 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 
     15  1.3    lukem name="postfix"
     16  1.3    lukem required_files="/etc/${name}/main.cf"
     17  1.3    lukem extra_commands="reload"
     18  1.3    lukem 
     19  1.3    lukem start_precmd="checkyesno postfix"
     20  1.3    lukem start_cmd="postfix start"
     21  1.1  thorpej 
     22  1.3    lukem stop_precmd=$start_precmd
     23  1.1  thorpej stop_cmd="postfix stop"
     24  1.1  thorpej 
     25  1.3    lukem reload_precmd=$start_precmd
     26  1.1  thorpej reload_cmd="postfix reload"
     27  1.1  thorpej 
     28  1.4    lukem load_rc_config $name
     29  1.3    lukem run_rc_command "$1"
     30