Skip to content

Commit

Permalink
netconsole: var/lock -> run/lock
Browse files Browse the repository at this point in the history
/var/lock is a symlink to /run/lock,
so let's use proper location

(cherry picked from commit 91df03e)

Resolves: RHEL-40660
  • Loading branch information
lnykryn authored and jamacku committed Aug 27, 2024
1 parent 1452de9 commit 6cf7e74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usr/libexec/netconsole
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ start ()
$SYSLOGOPTS
[ "$?" != "0" ] && RETVAL=1
fi
touch /var/lock/subsys/netconsole
touch /run/lock/subsys/netconsole
}

stop ()
Expand All @@ -122,7 +122,7 @@ stop ()
[ "$?" != "0" ] && RETVAL=1
fi

rm -f /var/lock/subsys/netconsole
rm -f /run/lock/subsys/netconsole
}

status ()
Expand All @@ -144,7 +144,7 @@ restart ()

condrestart ()
{
[ -e /var/lock/subsys/netconsole ] && restart
[ -e /run/lock/subsys/netconsole ] && restart
}

case "$1" in
Expand Down

0 comments on commit 6cf7e74

Please sign in to comment.