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