diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2010-12-01 07:12:37 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2010-12-01 07:12:37 +0000 |
commit | 5e83453656b3630864e0745758585288ebdde6a1 (patch) | |
tree | 972f1883e70e2e0d2a17acdb349b44dc3d705fa6 /www/cblog | |
parent | 1229a64ff8090dfdb81f170f8bf4f082345bc3cb (diff) | |
download | ports-5e83453656b3630864e0745758585288ebdde6a1.tar.gz ports-5e83453656b3630864e0745758585288ebdde6a1.zip |
- s/login/LOGIN/ in rc script
- cleaner way to handle start_precmd
Reported by: dougb
Notes
Notes:
svn path=/head/; revision=265498
Diffstat (limited to 'www/cblog')
-rw-r--r-- | www/cblog/files/cblog.in | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/www/cblog/files/cblog.in b/www/cblog/files/cblog.in index 97f2a15fbbdf..7b05c4a246ee 100644 --- a/www/cblog/files/cblog.in +++ b/www/cblog/files/cblog.in @@ -5,7 +5,7 @@ # cblog.fcgi startup script # # PROVIDE: cblog -# REQUIRE: login +# REQUIRE: LOGIN # KEYWORK: shutdown # Add the following to /etc/rc.conf[.local] to enable this service @@ -35,10 +35,7 @@ cblog_setfib() { cblog_precmd() { cblog_setfib - test -d /var/run/cblog || mkdir -p /var/run/cblog - if [ -n "${cblog_user}" ]; then - chown -R ${cblog_user} /var/run/cblog - fi + install -d -o $cblog_user -m 755 /var/run/cblog } . /etc/rc.subr @@ -52,6 +49,7 @@ start_precmd="cblog_precmd" load_rc_config $name cblog_enable=${cblog_enable:-"NO"} cblog_fib=${cblog_fib:-"NONE"} +cblog_user=${cblog_user:-"root"} cblog_socket=${cblog_socker:-"unix:/var/run/cblog/cblog.sock"} command_args=${cblog_socket} |