Package-Manager: Portage-2.3.36, Repoman-2.3.9
--- /dev/null
+[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
# xml.etree.ElementTree module required.
PYTHON_REQ_USE="xml"
-inherit distutils-r1 user
+inherit distutils-r1 systemd user
MY_PV="${PV/_beta/b}"
insinto /etc
doins "${FILESDIR}/supervisord.conf"
keepdir /var/log/supervisor
+ systemd_dounit "${FILESDIR}/supervisord.service"
}
pkg_preinst() {