Revision 6c9c95d8

b/snf-cyclades-app/synnefo/logic/dispatcher.py
57 57
    from daemon import pidfile as pidlockfile
58 58
except:
59 59
    from daemon import pidlockfile
60
import setproctitle
60 61

  
61 62
from synnefo.lib.amqp import AMQPClient
62 63
from synnefo.logic import callbacks
......
298 299
def main():
299 300
    (opts, args) = parse_arguments(sys.argv[1:])
300 301

  
302
    # Rename this process so 'ps' output looks like this is a native
303
    # executable.  Can not seperate command-line arguments from actual name of
304
    # the executable by NUL bytes, so only show the name of the executable
305
    # instead.  setproctitle.setproctitle("\x00".join(sys.argv))
306
    setproctitle.setproctitle(sys.argv[0])
307

  
301 308
    # Init the global variables containing the queues
302 309
    _init_queues()
303 310

  
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