I have multiple scripts that detach a process from bash using nohup
and &>/dev/null &
. My question is, how do I kill the process after completely detaching it from bash. using killall
or pidof ScriptName
doesn't work.
Bash – How to kill a process after detaching it from bash
bashjob-controlkillprocess
Best Answer
nohup
should only affect the hangup signal. Sokill
should still work normally. Maybe you are using the wrong pid or process name; compare withpstree -p
orps -ef
.If you still suspect
nohup
, maybe you could trydisown
instead.