Restart process with SIGHUP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • LukasMeyerUK@gmail.com

    #1

    Restart process with SIGHUP

    Hello,

    I'm trying to restart a process with the os.kill command. My Problem is
    that if the command gets executed, my python script stops working. I
    want to SIGHUP a process with the following command: os.kill(pid,
    signal.SIGHUP).

    Can anyone give me a hint in solving this?

    Best regards,

    Lukas

  • Mike Meyer

    #2
    Re: Restart process with SIGHUP

    LukasMeyerUK@gm ail.com writes:[color=blue]
    > I'm trying to restart a process with the os.kill command. My Problem is
    > that if the command gets executed, my python script stops working. I
    > want to SIGHUP a process with the following command: os.kill(pid,
    > signal.SIGHUP).[/color]

    That looks right.
    [color=blue]
    > Can anyone give me a hint in solving this?[/color]

    Not without knowing what the problem really is. Show us code. Show us
    a traceback (best) or otherwise provide details about what "stops
    working" means.

    <mike
    --
    Mike Meyer <mwm@mired.or g> http://www.mired.org/home/mwm/
    Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

    Comment

    • LukasMeyerUK@gmail.com

      #3
      Re: Restart process with SIGHUP

      Got it working now. It was a silly character pid instead of an int..

      int(pid) fixed it.

      Thanks anyway!

      regards, Lukas

      Comment

      Working...