diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-01-12 16:23:08 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-01-12 16:23:08 +0000 |
commit | ec51f524ba8f8430b4f90a1f9b1bdcbd9144b646 (patch) | |
tree | 46702ce5d9789ec5368da7a4417dc224986aba27 /mail/postfix1/files | |
parent | 424231e98c71c39acfe138178e06affecf3e3e0f (diff) |
Notes
Diffstat (limited to 'mail/postfix1/files')
-rw-r--r-- | mail/postfix1/files/postfix.sh.in | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mail/postfix1/files/postfix.sh.in b/mail/postfix1/files/postfix.sh.in new file mode 100644 index 000000000000..8424abbe123b --- /dev/null +++ b/mail/postfix1/files/postfix.sh.in @@ -0,0 +1,35 @@ +#!/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" |