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