aboutsummaryrefslogtreecommitdiffstats
path: root/config/tinydns/tinydns.inc
diff options
context:
space:
mode:
authorBenoit GUERIN <bguerin@netceler.com>2012-08-29 07:57:34 +0200
committerBenoit GUERIN <bguerin@netceler.com>2012-08-29 07:57:34 +0200
commitbd190c0d57fa5ea228dfacbceccf4d9249ee8c69 (patch)
treee79f1457a4eca252602047ac9afc2d54d2e9cb3d /config/tinydns/tinydns.inc
parentf031bf5879fb924ce7ff09f358a00731d46357df (diff)
downloadpfsense-packages-bd190c0d57fa5ea228dfacbceccf4d9249ee8c69.tar.gz
pfsense-packages-bd190c0d57fa5ea228dfacbceccf4d9249ee8c69.tar.bz2
pfsense-packages-bd190c0d57fa5ea228dfacbceccf4d9249ee8c69.zip
Using multilog instead of readproctitle to log svscan output
Diffstat (limited to 'config/tinydns/tinydns.inc')
-rw-r--r--config/tinydns/tinydns.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc
index 959a9719..7c8f15d7 100644
--- a/config/tinydns/tinydns.inc
+++ b/config/tinydns/tinydns.inc
@@ -76,6 +76,7 @@ rcvar=`set_rcvar`
command="/usr/local/bin/svscan"
svscan_enable=\${svscan_enable-"YES"}
svscan_servicedir=\${svscan_servicedir-"{$g['varrun_path']}/service"}
+logdir="/var/log/svscan"
start_cmd="svscan_start"
stop_postcmd="svscan_stop_post"
@@ -86,9 +87,10 @@ required_dirs="\${svscan_servicedir}"
svscan_start () {
echo "Starting svscan."
+ mkdir -p \$logdir
/usr/bin/env \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
- /usr/sbin/daemon -f /bin/sh -c "\$command \$svscan_servicedir 2>&1 | /usr/local/bin/readproctitle service errors: ................................................................................................................................................................................................................................................................................................................................................................................................................ &" > /dev/null
+ /usr/sbin/daemon -f /bin/sh -c "\$command \$svscan_servicedir 2>&1 | /usr/local/bin/multilog t \$logdir" > /dev/null
minicron {$refreshinterval} {$g['varrun_path']}/ping_hosts.pid "/etc/ping_hosts.sh; cd {$g['varetc_path']}/tinydns/root && /usr/local/bin/tinydns-data"
}