-
Notifications
You must be signed in to change notification settings - Fork 251
Open
Description
Under Ubuntu, this is the error I got.
ps -ef | grep "services/movies.py" | grep -v grep | awk '{print $2}' | xargs kill
Usage:
kill [options] <pid> [...]
Options:
<pid> [...] send signal to every <pid> listed
-<signal>, -s, --signal <signal>
specify the <signal> to be sent
-l, --list=[<signal>] list all signal names, or convert one to a name
-L, --table list all signal names in a nice table
-h, --help display this help and exit
-V, --version output version information and exit
For more details see kill(1).
make: *** [shutdown] Error 123
The problem is related to the kill part, as this is my first time, there is no PID and therefore, kill complains.
Fixed by adding -r to the xargs. According to the man page: Do not run the command if there are no arguments. Normally the command is executed at least once even if there are no arguments.
jingchaoluan
Metadata
Metadata
Assignees
Labels
No labels