diff options
author | wxs <wxs@FreeBSD.org> | 2011-06-04 05:35:32 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2011-06-04 05:35:32 +0800 |
commit | 5e679aa733002b27945e8a7e0549cbe5f6ab407b (patch) | |
tree | b6d80b16a05cbdc9d86aedb310aff05193b98193 /mail | |
parent | 7fea8fe7e7d911c026bbba25204a7ce4b7cb9b8c (diff) | |
download | freebsd-ports-gnome-5e679aa733002b27945e8a7e0549cbe5f6ab407b.tar.gz freebsd-ports-gnome-5e679aa733002b27945e8a7e0549cbe5f6ab407b.tar.zst freebsd-ports-gnome-5e679aa733002b27945e8a7e0549cbe5f6ab407b.zip |
Add corrections in RC script from Doug.
Submitted by: dougb@
Diffstat (limited to 'mail')
-rw-r--r-- | mail/sqlgrey/files/sqlgrey.in | 9 |
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" |