#!/bin/sh # # $FreeBSD$ # # PROVIDE: postfix # REQUIRE: %%REQUIRE%% # KEYWORD: shutdown # # Define these postfix_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # /etc/rc.conf.d/postfix # # DO NOT CHANGE THESE DEFAULT VALUES HERE # postfix_enable="${postfix_enable-NO}" . %%RC_SUBR%% name="postfix" rcvar=`set_rcvar` start_cmd=${name}_start stop_cmd=${name}_stop postfix_start() { %%PREFIX%%/sbin/postfix start } postfix_stop() { %%PREFIX%%/sbin/postfix stop } load_rc_config ${name} run_rc_command "$1"