Yannik/qnap-letsencrypt

kill: you need to specify whom to kill

dofuuz opened this issue · 1 comments

Platform/Firmware Information

Platform = X86_BAYTRAIL
DISPLAY_NAME = TS-251+

Model = TS-X51
Internal Model = TS-X51
Version = 4.4.1
Build Number = 20191206
Rsync Model = QNAP
Build Date = 2019-12-06

Issue Summary (provide relevant error messages and log output):

Error occured during executing renew_certificate.sh

Killing old python processes hogging port 80
kill: you need to specify whom to kill
An error occured. Restoring system state.

It's fixed after changing this line

lsof -i tcp:80 -a -c python -t | xargs kill

to

lsof -i tcp:80 -a -c python -t | xargs -r kill

you are completely right. fixed!