diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2018-05-24 08:43:25 +0200 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2018-05-24 08:46:27 +0200 |
commit | 71765840c27413e8ebdf03d7b56d9ff81f89e00d (patch) | |
tree | cdbd6722416ad93a0b036275e678534e6c380fd3 /app-admin/supervisor | |
parent | app-admin/supervisor: bump to 3.3.4, add default config, dedicated group (diff) | |
download | gentoo-71765840c27413e8ebdf03d7b56d9ff81f89e00d.tar.gz gentoo-71765840c27413e8ebdf03d7b56d9ff81f89e00d.tar.bz2 gentoo-71765840c27413e8ebdf03d7b56d9ff81f89e00d.zip |
app-admin/supervisor: add systemd unit
Package-Manager: Portage-2.3.36, Repoman-2.3.9
Diffstat (limited to 'app-admin/supervisor')
-rw-r--r-- | app-admin/supervisor/files/supervisord.service | 15 | ||||
-rw-r--r-- | app-admin/supervisor/supervisor-3.3.4.ebuild | 3 |
2 files changed, 17 insertions, 1 deletions
diff --git a/app-admin/supervisor/files/supervisord.service b/app-admin/supervisor/files/supervisord.service new file mode 100644 index 000000000000..4ccd1ca5fcc0 --- /dev/null +++ b/app-admin/supervisor/files/supervisord.service @@ -0,0 +1,15 @@ +[Unit] +Description=Supervisor process control system for UNIX +Documentation=http://supervisord.org +After=network.target + +[Service] +ExecStart=/usr/bin/supervisord -n -c /etc/supervisord.conf +ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown +ExecReload=/usr/bin/supervisorctl -c /etc/supervisord.conf $OPTIONS reload +KillMode=process +Restart=on-failure +RestartSec=50s + +[Install] +WantedBy=multi-user.target diff --git a/app-admin/supervisor/supervisor-3.3.4.ebuild b/app-admin/supervisor/supervisor-3.3.4.ebuild index ce186e3a46ad..1b78252cdb4d 100644 --- a/app-admin/supervisor/supervisor-3.3.4.ebuild +++ b/app-admin/supervisor/supervisor-3.3.4.ebuild @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python2_7 ) # py2 only # xml.etree.ElementTree module required. PYTHON_REQ_USE="xml" -inherit distutils-r1 user +inherit distutils-r1 systemd user MY_PV="${PV/_beta/b}" @@ -61,6 +61,7 @@ python_install_all() { insinto /etc doins "${FILESDIR}/supervisord.conf" keepdir /var/log/supervisor + systemd_dounit "${FILESDIR}/supervisord.service" } pkg_preinst() { |