how I restart a process from itself?

Discussion in 'Python' started by Paolo Veronelli, Oct 21, 2004.

  1. I want to add a sensible address to my nevow server, so it has to launch
    an executable that stop itself and restart it.

    I tried os.execl('restart','') but I have a format error and I do not
    understand the manual page.

    thanks for help
     
    Paolo Veronelli, Oct 21, 2004
    #1
    1. Advertising

  2. Paolo Veronelli

    Larry Bates Guest

    Paolo Veronelli wrote:
    > I want to add a sensible address to my nevow server, so it has to launch
    > an executable that stop itself and restart it.
    >
    > I tried os.execl('restart','') but I have a format error and I do not
    > understand the manual page.
    >
    > thanks for help
    >
    >

    What platform (Windows or Linux)?

    If it is Windows you need to write your program as a
    Windows service. Then you can use ServiceManage to
    start, stop, and restart it.

    Larry Bates
    Syscon, Inc.
     
    Larry Bates, Oct 21, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian
    Replies:
    1
    Views:
    765
    Mothra
    May 25, 2004
  2. Daniel
    Replies:
    5
    Views:
    545
    Saravana
    Oct 29, 2004
  3. Vyacheslav Lanovets
    Replies:
    2
    Views:
    3,114
    Juan T. Llibre
    Jul 27, 2005
  4. Replies:
    2
    Views:
    865
  5. Josef Moellers

    Restart Perl Application upon KDE Restart

    Josef Moellers, Jul 18, 2013, in forum: Perl Misc
    Replies:
    18
    Views:
    285
    Adam H. Kerman
    Jul 26, 2013
Loading...

Share This Page