mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
do not kill the process if it's not needed
This commit is contained in:
parent
beb8c992c1
commit
905507d072
1 changed files with 4 additions and 3 deletions
|
@ -124,9 +124,10 @@ parse_args
|
|||
|
||||
if [[ $force_stop == 1 ]]
|
||||
then
|
||||
package_check_pid="$(cat "./pcheck.lock" | cut -d: -f3)"
|
||||
package_check_pid="$(cat "./pcheck.lock" 2> /dev/null | cut -d: -f3)"
|
||||
if [ -n "$package_check_pid" ]; then
|
||||
kill --signal 15 $package_check_pid
|
||||
LXC_RESET
|
||||
fi
|
||||
clean_exit 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue