policy-loader automatically enters RUNNING state when spawned
logfile=supervisord_subprocess_log_dir(config) / "policy-loader.log",
workdir=cwd,
command=f"{KRESD_EXECUTABLE} -c {(policy_loader_config_file(config))} -c - -n",
- environment="X-SUPERVISORD-TYPE=notify",
+ environment="",
)
@staticmethod
autostart=false
stopsignal=TERM
killasgroup=true
-startsecs=300
+startsecs=0
+exitcodes=0
environment={{ loader.environment }}
stdout_logfile=NONE
stderr_logfile=NONE
{% endif %}
--- This sleep() is necessary because of the possible
--- termination of the policy-loader before it is
--- added into starting_processes in sd_notify.py.
--- If this happens, the READY notification will end with an error.
-C.sleep(1)
-
-- exit policy-loader properly
quit()