summaryrefslogtreecommitdiff
path: root/mail/noattach/files/noattach.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'mail/noattach/files/noattach.sh.in')
-rw-r--r--mail/noattach/files/noattach.sh.in10
1 files changed, 3 insertions, 7 deletions
diff --git a/mail/noattach/files/noattach.sh.in b/mail/noattach/files/noattach.sh.in
index 5bccc1f557b7..4e32b95f33aa 100644
--- a/mail/noattach/files/noattach.sh.in
+++ b/mail/noattach/files/noattach.sh.in
@@ -10,8 +10,6 @@
# KEYWORD: shutdown
#
-prefix=%%PREFIX%%
-
# Define these noattach_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
@@ -22,14 +20,14 @@ prefix=%%PREFIX%%
noattach_enable=${noattach_enable:-"NO"} # Enable noattach
noattach_pidfile=${noattach_pidfile:-"/var/run/noattach.pid"} # Path to pidfile
noattach_socket=${noattach_socket:-"/var/run/noattach"} # Path to socket
-noattach_flags=${noattach_flags:-""} # Flags to noattach
+# noattach_flags="" # Flags to noattach
. /etc/rc.subr
name="noattach"
rcvar=`set_rcvar`
-command="${prefix}/libexec/${name}"
-required_files="${prefix}/etc/noattach.patterns"
+command="%%PREFIX%%/libexec/${name}"
+required_files="%%PREFIX%%/etc/noattach.patterns"
start_precmd="noattach_prestart"
stop_postcmd="noattach_poststop"
reload_cmd="noattach_reload"
@@ -52,5 +50,3 @@ pidfile="${noattach_pidfile}"
command_args="-p local:${noattach_socket} ${noattach_flags}"
run_rc_command "$1"
-
-# eof