Commit 883eb77e authored by Dimitris Aragriorgs's avatar Dimitris Aragriorgs
Browse files

Add try-except in

It catches locking exceptions.
Signed-off-by: default avatarDimitris Aragriorgs <>
parent 0c650606
......@@ -35,6 +35,7 @@ import daemon.runner
import daemon.pidlockfile
import nfqueue
import pyinotify
from lockfile import LockTimeout
import IPy
import socket
......@@ -972,7 +973,12 @@ if __name__ == "__main__":,
d.umask = 0022
except (daemon.pidlockfile.AlreadyLocked, LockTimeout):
logger.critical("Failed to lock pidfile %s,"
" another instance running?", pidfile.path)
sys.exit(1)"Starting up")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment