Show More
@@ -497,6 +497,7 b' def service(opts, parentfn=None, initfn=' | |||||
497 | pid = util.rundetached(runargs, condfn) |
|
497 | pid = util.rundetached(runargs, condfn) | |
498 | if pid < 0: |
|
498 | if pid < 0: | |
499 | raise util.Abort(_('child process failed to start')) |
|
499 | raise util.Abort(_('child process failed to start')) | |
|
500 | writepid(pid) | |||
500 | finally: |
|
501 | finally: | |
501 | try: |
|
502 | try: | |
502 | os.unlink(lockpath) |
|
503 | os.unlink(lockpath) | |
@@ -511,6 +512,7 b' def service(opts, parentfn=None, initfn=' | |||||
511 | if initfn: |
|
512 | if initfn: | |
512 | initfn() |
|
513 | initfn() | |
513 |
|
514 | |||
|
515 | if not opts['daemon']: | |||
514 | writepid(os.getpid()) |
|
516 | writepid(os.getpid()) | |
515 |
|
517 | |||
516 | if opts['daemon_pipefds']: |
|
518 | if opts['daemon_pipefds']: |
General Comments 0
You need to be logged in to leave comments.
Login now