diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-06-18 16:00:30 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-06-18 16:00:30 +0200 |
commit | 6a5011a3b921cdaa68e04eb21d4244217fba525d (patch) | |
tree | 6a085d125aa1085fb2ccd2b7df7a3634996cd667 | |
parent | 92e1dc5d8a46d0f48194d20fe32868b3a9519331 (diff) |
Enable logging in daemon.
-rwxr-xr-x | etc/miavd.in | 2 | ||||
-rw-r--r-- | miav-server.spec | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/etc/miavd.in b/etc/miavd.in index abad632..a167d9c 100755 --- a/etc/miavd.in +++ b/etc/miavd.in @@ -40,7 +40,7 @@ start() { fi export LD_LIBRARY_PATH=$_PREFIX/lib - $_BIN --pidfile ${_PID} --config ${_CONF} -D +all &> /dev/null + $_BIN --pidfile ${_PID} --config ${_CONF} -D +all --logfile ${_LOG} &> /dev/null RETVAL=$? [ $RETVAL -eq 0 ] && success || failure echo diff --git a/miav-server.spec b/miav-server.spec index 27a8df6..22bd902 100644 --- a/miav-server.spec +++ b/miav-server.spec @@ -22,10 +22,12 @@ make %install %make_install +mkdir var/log/miavd %files %defattr(-,root,root,-) /usr/bin/miavd +/var/log/miavd %attr(755, root, root) /etc/init.d/miavd %config(noreplace) /etc/miav |