mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Cleanup incus too
This commit is contained in:
parent
46b86e3070
commit
f5d720ca3a
2 changed files with 8 additions and 7 deletions
1
run.py
1
run.py
|
@ -570,6 +570,7 @@ async def cleanup_old_package_check_if_lock_exists(worker, job, ignore_error=Fal
|
|||
|
||||
# Dirty hack to kill ~zombi processes adopted by init doing funky stuff -_-
|
||||
os.system("for PID in $(ps -ef --forest | grep 'lxc exec' | grep ' 1 ' | awk '{print $2}'); do kill -9 $PID; done")
|
||||
os.system("for PID in $(ps -ef --forest | grep 'incus exec' | grep ' 1 ' | awk '{print $2}'); do kill -9 $PID; done")
|
||||
os.system("for PID in $(ps -ef --forest | grep 'script -qefc' | grep ' 1 ' | awk '{print $2}' ); do kill $PID; done")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue