Revision 1dc821c9

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
......
300 301
def main():
301 302
    (opts, args) = parse_arguments(sys.argv[1:])
302 303

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

  
303 310
    # Init the global variables containing the queues
304 311
    _init_queues()
305 312

  
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