Stating that a new process has been started but old one is still running is not a warning.

parent dcf75119
...@@ -146,8 +146,8 @@ def setRunning(pid_file): ...@@ -146,8 +146,8 @@ def setRunning(pid_file):
# XXX This could use psutil library. # XXX This could use psutil library.
if pid is not None and os.path.exists("/proc/%s" % pid): if pid is not None and os.path.exists("/proc/%s" % pid):
# In case process is present, ignore. # In case process is present, ignore.
logger.warning('New slapos process started, but another slapos ' logger.info('New slapos process started, but another slapos '
'process is aleady running with pid %s, exiting.' % pid) 'process is aleady running with pid %s, exiting.' % pid)
sys.exit(10) sys.exit(10)
logger.info('Existing pid file %r was stale one, overwritten' % pid_file) logger.info('Existing pid file %r was stale one, overwritten' % pid_file)
# Start new process # Start new process
......
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