I'm trying to kill a process by it's name, not by pid, but, can not figure
out how to specify the process name to kill;
I can kill the proces OK by pid , I just do not seem to get it by its' name,
what am i missing:
man kill
..
kill [ -s signal | -p ] [ -a ] [ -- ] pid ..
..
OPTIONS
pid... Specify the list of processes that kill should sig-
nal. Each pid can be one of five things:
..
commandname
All processes invoked using that name will
be signaled.
# kill teapop
bash: kill: teapop: no such pid
# kill --teapop
bash: kill: bad signal spec `-teapop'
# kill -- teapop
bash: kill: teapop: no such pid
# ps aux | grep teapop
root 9260 0.0 0.1 1636 472 ? S 22:18 0:00 ./teapop -s
voytek 9265 0.0 0.3 1964 788 ? S 22:19 0:00 ./teapop -s
in reality, all I want is to reload the config, for that can I just send
'sighup' instead of kill/start ?
Voytek Eymont
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug