Browse Source

refactor: improve file deletion in command_stop.sh

The code change refactors the file deletion process in the command_stop.sh script. Instead of using an empty redirect, it now directly removes the specified lock file. This improves clarity and ensures proper cleanup when stopping a command.
pull/4296/head
Daniel Gibbs 2 years ago
parent
commit
b7d9e1b521
  1. 2
      lgsm/modules/command_stop.sh

2
lgsm/modules/command_stop.sh

@ -283,7 +283,7 @@ rm -f "${lockdir:?}/${selfname}-started.lock"
# If user ran the stop command monitor will become disabled. # If user ran the stop command monitor will become disabled.
if [ -z "${exitbypass}" ]; then if [ -z "${exitbypass}" ]; then
rm -f > "${lockdir:?}/${selfname}-monitoring.lock" rm -f "${lockdir:?}/${selfname}-monitoring.lock"
fi fi

Loading…
Cancel
Save