diff --git a/mmmonitd.sh b/mmmonitd.sh index d409cca..6ce37a2 100755 --- a/mmmonitd.sh +++ b/mmmonitd.sh @@ -3,14 +3,12 @@ set -e dir=${DIR:-/srv} pid=/run/mmmonit.pid -# TODO: Log to syslog -log=${dir}/mmmonit.log usr=${USER:-nobody} case $1 in start) chown -R ${usr}:${usr} ${dir} - daemonize -a -e ${log} -o ${log} -c ${dir} -p ${pid} -l ${pid} -u ${usr} /usr/bin/mmmonit -b :: -p 3000 + daemonize -c ${dir} -p ${pid} -l ${pid} -u ${usr} /usr/local/bin/syslogize /usr/bin/mmmonit -b :: -p 3000 ;; stop) test -f ${pid} || exit 0