Revision 1dc821c9 snf-cyclades-gtools/synnefo/ganeti/eventd.py
b/snf-cyclades-gtools/synnefo/ganeti/eventd.py | ||
---|---|---|
54 | 54 |
import daemon.runner |
55 | 55 |
from lockfile import LockTimeout |
56 | 56 |
from signal import signal, SIGINT, SIGTERM |
57 |
import setproctitle |
|
57 | 58 |
|
58 | 59 |
from ganeti import utils |
59 | 60 |
from ganeti import jqueue |
... | ... | |
320 | 321 |
logger.addHandler(handler) |
321 | 322 |
handler_logger = logger |
322 | 323 |
|
324 |
# Rename this process so 'ps' output looks like this is a native |
|
325 |
# executable. Can not seperate command-line arguments from actual name of |
|
326 |
# the executable by NUL bytes, so only show the name of the executable |
|
327 |
# instead. setproctitle.setproctitle("\x00".join(sys.argv)) |
|
328 |
setproctitle.setproctitle(sys.argv[0]) |
|
329 |
|
|
323 | 330 |
# Create pidfile |
324 | 331 |
pidf = daemon.pidlockfile.TimeoutPIDLockFile(opts.pid_file, 10) |
325 | 332 |
|
Also available in: Unified diff