Commit 7679c9bc by Eric Fischer

Make systemd place nice with supervisor

parent 451f6259
...@@ -28,12 +28,17 @@ PermissionsStartOnly=true ...@@ -28,12 +28,17 @@ PermissionsStartOnly=true
User={{ supervisor_service_user }} User={{ supervisor_service_user }}
Type=forking Type=forking
TimeoutStartSec=432000 TimeoutSec=432000
ExecStart={{ supervisor_venv_dir }}/bin/supervisord --configuration {{ supervisor_cfg }} ExecStart={{ supervisor_venv_dir }}/bin/supervisord --configuration {{ supervisor_cfg }}
ExecReload={{ supervisor_venv_dir }}/bin/supervisorctl reload ExecReload={{ supervisor_venv_dir }}/bin/supervisorctl reload
ExecStop={{ supervisor_venv_dir }}/bin/supervisorctl shutdown ExecStop={{ supervisor_venv_dir }}/bin/supervisorctl shutdown
# Trust supervisor to kill all its children
# Otherwise systemd will see that ExecStop ^ comes back synchronously and say "Oh, I can kill everyone in this cgroup"
# https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStop=
# https://www.freedesktop.org/software/systemd/man/systemd.kill.html
KillMode=none
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
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