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