aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/sqlgrey/files/sqlgrey.in9
1 files changed, 4 insertions, 5 deletions
diff --git a/mail/sqlgrey/files/sqlgrey.in b/mail/sqlgrey/files/sqlgrey.in
index 9a0569078d35..d44fc2ea558b 100644
--- a/mail/sqlgrey/files/sqlgrey.in
+++ b/mail/sqlgrey/files/sqlgrey.in
@@ -1,19 +1,17 @@
#!/bin/sh
+
# $FreeBSD$
#
-
# PROVIDE: sqlgrey
# REQUIRE: LOGIN
# BEFORE: mail
# KEYWORD: shutdown
-
#
# Add the following lines to /etc/rc.conf to enable sqlgrey:
#
# sqlgrey_enable="YES"
#
# See man sqlgrey for flags or the config file.
-#
. /etc/rc.subr
@@ -34,7 +32,8 @@ sqlgrey_poststop()
load_rc_config $name
sqlgrey_enable=${sqlgrey_enable-"NO"}
-sqlgrey_config=${sqlgrey_config-"/usr/local/%%ETCDIR%%/sqlgrey.conf"}
-sqlgrey_flags=${sqlgrey_flags-"--daemonize --configfile=${sqlgrey_config}"}
+required_files=${sqlgrey_config-"%%PREFIX%%/%%ETCDIR%%/sqlgrey.conf"}
+
+command_args="--configfile=${required_files} --daemonize"
run_rc_command "$1"