Results 1 to 13 of 13
  1. #1

    Kill -HUP per name process

    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.

  2. #2
    Join Date
    May 2008
    Posts
    340
    You can use the command 'killall'

    killall -s HUP processname
    If you exclude -s HUP, the default the signal sent is SIGTERM.
    Twitter : http://twitter.com/eth1networks
    Contact Us : support[at]eth1.in

  3. #3
    Join Date
    Apr 2007
    Posts
    651
    Never mind - looks like guy above me got it.
    Justin Yancey | Northern Virginia & District of Columbia | https://www.linkedin.com/in/justinyancey

  4. #4
    killall -s HUP killed services .

  5. #5
    Join Date
    Apr 2009
    Location
    whitehouse
    Posts
    656
    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.
    James B
    EzeeloginSetup your Secure Linux SSH Gateway.
    |Manage & Administer Multiple Linux Servers Quickly & Securely.

  6. #6
    O start aplications via, example,

    ./server &

    I want reload services with name server warch 2hs.

  7. #7
    killall -1 process

    will make 'process' re-read its config as well

  8. #8
    killall -1 kill process.

    I want only reload.

  9. #9
    News? Thanks.

  10. #10
    Join Date
    Apr 2009
    Location
    whitehouse
    Posts
    656
    Start the server using the following command
    nohup ./server &
    and then kill -s HUP <pid_of_server_process>

    Quote Originally Posted by CleberDantas View Post
    O start aplications via, example,

    ./server &

    I want reload services with name server warch 2hs.
    James B
    EzeeloginSetup your Secure Linux SSH Gateway.
    |Manage & Administer Multiple Linux Servers Quickly & Securely.

  11. #11
    Hello Friend.

    Problem is id change all days or costumer restart.

    No is possible via name?

  12. #12
    Join Date
    Apr 2009
    Location
    whitehouse
    Posts
    656
    killall -s HUP <name_of _process>
    Quote Originally Posted by CleberDantas View Post
    Hello Friend.

    Problem is id change all days or costumer restart.

    No is possible via name?
    James B
    EzeeloginSetup your Secure Linux SSH Gateway.
    |Manage & Administer Multiple Linux Servers Quickly & Securely.

  13. #13
    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..

Similar Threads

  1. couldn't kill a process
    By james007 in forum Hosting Security and Technology
    Replies: 4
    Last Post: 03-27-2007, 08:17 AM
  2. Cannot kill process
    By hehachris in forum Hosting Security and Technology
    Replies: 3
    Last Post: 10-15-2006, 06:09 AM
  3. PRM(Process Resource Monitor) kills apache when kill process
    By IKillBill in forum Hosting Security and Technology
    Replies: 4
    Last Post: 11-12-2005, 10:02 AM
  4. Can't kill process?
    By JMichael in forum Hosting Security and Technology
    Replies: 7
    Last Post: 03-23-2005, 11:07 AM
  5. kill process?
    By Bob2raq in forum Dedicated Server
    Replies: 2
    Last Post: 10-19-2002, 06:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •