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

Add --nodaemon (or -n) argument to start supervidord in foreground

parent c4309c21038e
No related branches found
No related tags found
No related merge requests found
......@@ -919,7 +919,13 @@
required=False,
type=str,
default='',
help='password for supervisord',
help='Password for supervisord',
)
parser.add_argument(
'-n',
'--nodaemon',
action='store_true',
help='Run supervisord in the foreground',
)
args = parser.parse_args()
supervisorctl_pwd = args.password
......@@ -928,7 +934,7 @@
config.read_file(args.configuration)
args.configuration.close()
nodaemon = config['supervisord'].getboolean('nodaemon', False)
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