Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
hi all, is that any command that allow me to restart the running process?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234

    restart process


    hi all,
    is that any command that allow me to restart the running process?
    Proper Planing is a way of success

  2. #2
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    What process do you want to restart??
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  3. #3
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    Code:
    kill
    normaly does the trick.

    So
    Code:
    man kill
    for more.

    What do you want to restart?
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by smolloy
    What process do you want to restart??
    my php program that run at the backed
    Proper Planing is a way of success

  6. #5
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by antidrugue
    Code:
    kill
    normaly does the trick.

    So
    Code:
    man kill
    for more.

    What do you want to restart?
    As i know killall will only terminate the process and not start it again
    Proper Planing is a way of success

  7. #6
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    So just do:
    Code:
    top
    or
    Code:
    ps fax | grep -i php
    to know the PID (process ID), and then you can:
    Code:
    kill <PID>
    which is a number, like

    Code:
    kill 8787
    Or check to see if there is something about php in /etc/init.d/

    That way you could
    Code:
    /etc/init.d/php restart
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  8. #7
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by antidrugue
    So just do:
    Code:
    top
    or
    Code:
    ps fax | grep -i php
    to know the PID (process ID), and then you can:
    Code:
    kill <PID>
    which is a number, like

    Code:
    kill 8787
    Or check to see if there is something about php in /etc/init.d/

    That way you could
    Code:
    /etc/init.d/php restart
    these commands are more like terminate and then start up again instead of restart, u get what i'm trying to say?
    Proper Planing is a way of success

  9. #8
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    I got messed up, talking about 2 different things.

    In fact it's more just like that:
    Code:
    /etc/init.d/php restart
    Look into /etc/init.d/ to know what's the exact name of the php process.
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  10. #9
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by antidrugue
    I got messed up, talking about 2 different things.

    In fact it's more just like that:
    Code:
    /etc/init.d/php restart
    Look into /etc/init.d/ to know what's the exact name of the php process.
    besides, what is the command to check all the running processes?
    Proper Planing is a way of success

  11. #10
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,211
    Code:
    ps aux
    or
    Code:
    ps fax
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

Page 1 of 2 1 2 LastLast

Posting Permissions

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