Portal Home > Knowledgebase > Articles Database > Kill -HUP per name process
Kill -HUP per name process
Posted by CleberDantas, 09-26-2009, 10:35 PM |
Hello all,
I want send kill -HUP in process via name, no id.
Is possible?
I want reload (using kill -HUP) earch 1h and necessary send via name.
|
Posted by eth1, 09-27-2009, 01:41 AM |
You can use the command 'killall'
If you exclude -s HUP, the default the signal sent is SIGTERM.
|
Posted by JustinAY, 09-27-2009, 01:42 AM |
Never mind - looks like guy above me got it.
|
Posted by CleberDantas, 09-27-2009, 10:11 PM |
killall -s HUP killed services .
|
Posted by ZenMonk, 09-28-2009, 03:55 AM |
Which was the service that your tried to reload? Could you paste the exact command? Note that this works only on linux daemons as processes not started with nohup would hangup on sighup.
|
Posted by CleberDantas, 09-28-2009, 08:24 AM |
O start aplications via, example,
./server &
I want reload services with name server warch 2hs.
|
Posted by webleadGM, 09-28-2009, 09:26 AM |
killall -1 process
will make 'process' re-read its config as well
|
Posted by CleberDantas, 09-28-2009, 01:29 PM |
killall -1 kill process.
I want only reload.
|
Posted by CleberDantas, 10-09-2009, 01:41 PM |
News? Thanks.
|
Posted by ZenMonk, 10-12-2009, 06:34 AM |
Start the server using the following command
nohup ./server &
and then kill -s HUP
|
Posted by CleberDantas, 10-12-2009, 03:50 PM |
Hello Friend.
Problem is id change all days or costumer restart.
No is possible via name?
|
Posted by ZenMonk, 10-13-2009, 03:13 AM |
killall -s HUP
|
Posted by senetpro, 10-13-2009, 02:49 PM |
If you are having difficulty in finding the process name..you can also try this first find the process id using ps -ef | grep process_name | awk {'print $2'} and store it in a variable. You can now use kill -HUP $i..
|
Add to Favourites Print this Article
Also Read