From 6cf7e7494bb4ddb6b85e31e6d7f07dcf3fb4d988 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Tue, 27 Aug 2024 12:29:42 +0200 Subject: [PATCH] netconsole: var/lock -> run/lock /var/lock is a symlink to /run/lock, so let's use proper location (cherry picked from commit 91df03ef7a003767593f537c54c5399bee914195) Resolves: RHEL-40660 --- usr/libexec/netconsole | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/libexec/netconsole b/usr/libexec/netconsole index 31ed526a..92c79c62 100755 --- a/usr/libexec/netconsole +++ b/usr/libexec/netconsole @@ -112,7 +112,7 @@ start () $SYSLOGOPTS [ "$?" != "0" ] && RETVAL=1 fi - touch /var/lock/subsys/netconsole + touch /run/lock/subsys/netconsole } stop () @@ -122,7 +122,7 @@ stop () [ "$?" != "0" ] && RETVAL=1 fi - rm -f /var/lock/subsys/netconsole + rm -f /run/lock/subsys/netconsole } status () @@ -144,7 +144,7 @@ restart () condrestart () { - [ -e /var/lock/subsys/netconsole ] && restart + [ -e /run/lock/subsys/netconsole ] && restart } case "$1" in