mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-26 17:58:30 +00:00
Don't start Radicale when PID file exists (fixes #890)
This commit is contained in:
parent
83baebd750
commit
9d193b6b30
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,8 @@ def run():
|
||||||
|
|
||||||
# Fork if Radicale is launched as daemon
|
# Fork if Radicale is launched as daemon
|
||||||
if options.daemon:
|
if options.daemon:
|
||||||
|
if options.pid and os.path.exists(options.pid):
|
||||||
|
raise OSError("PID file exists: %s" % options.pid)
|
||||||
pid = os.fork()
|
pid = os.fork()
|
||||||
if pid:
|
if pid:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue