Skip to content
Snippets Groups Projects
Commit 1eb6ed25feb0 authored by jfp's avatar jfp
Browse files

stop on a program in FATAL state doesn't change it to STOPPED

parent c2ddfe9f6023
No related branches found
No related tags found
No related merge requests found
......@@ -495,7 +495,11 @@
)
def kill(self):
if self.process_is_stopped() or self.process_is_stopping():
if (
self.process_is_stopped()
or self.process_is_stopping()
or self.process_is_fatal()
):
return
if self.process_is_backoff() or self.process_is_fatal():
......@@ -935,7 +939,9 @@
config.read_file(args.configuration)
args.configuration.close()
nodaemon = config['supervisord'].getboolean('nodaemon', False) or args.nodaemon
nodaemon = (
config['supervisord'].getboolean('nodaemon', False) or args.nodaemon
)
if not nodaemon and not is_deamon():
usrdaemon = config['supervisord'].get('user', 'system')
stdout_file = config['supervisord'].get('stdout_file', 'NLA0:')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment