From 44b4a4f6d778227644e98c3894c57559d317eb3c Mon Sep 17 00:00:00 2001 From: Michael Chapman Date: Thu, 31 Dec 2015 16:09:12 +1100 Subject: [PATCH] virtlogd: fix lock file path in initscript The virtlogd initscript's lock file should go in /var/lock/subsys/, not (the nonexistent) /var/log/subsys/. Signed-off-by: Michael Chapman --- src/logging/virtlogd.init.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/logging/virtlogd.init.in b/src/logging/virtlogd.init.in index 14082367ae..bc9b903b1f 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}" -- GitLab