diff --git a/src/logging/virtlogd.init.in b/src/logging/virtlogd.init.in index 14082367ae592d0a1f39bba50de93b6368e60d52..bc9b903b1fa63b624e3d01e1063bb86f662e41f3 100644 --- a/src/logging/virtlogd.init.in +++ b/src/logging/virtlogd.init.in @@ -42,7 +42,7 @@ start() { daemon --pidfile $PIDFILE --check $SERVICE $PROCESS --daemon $VIRTLOGD_ARGS RETVAL=$? echo - [ $RETVAL -eq 0 ] && touch @localstatedir@/log/subsys/$SERVICE + [ $RETVAL -eq 0 ] && touch @localstatedir@/lock/subsys/$SERVICE } stop() { @@ -52,7 +52,7 @@ stop() { RETVAL=$? echo if [ $RETVAL -eq 0 ]; then - rm -f @localstatedir@/log/subsys/$SERVICE + rm -f @localstatedir@/lock/subsys/$SERVICE rm -f $PIDFILE fi } @@ -84,7 +84,7 @@ case "$1" in reload ;; condrestart|try-restart) - [ -f @localstatedir@/log/subsys/$SERVICE ] && restart || : + [ -f @localstatedir@/lock/subsys/$SERVICE ] && restart || : ;; *) echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload|try-restart}"