summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-python/recipes-devtools/python/python3-supervisor/supervisor.service
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2019-06-06 18:45:55 +0300
committerGitHub <noreply@github.com>2019-06-06 18:45:55 +0300
commit4aa406adc1accd959bf64d299d750e8b2083ace3 (patch)
tree3254b912d6468012543e127a19ba2f1cd13b108f /meta-openembedded/meta-python/recipes-devtools/python/python3-supervisor/supervisor.service
parenta479b661c952e9c0da8859d2e966748bd515690f (diff)
parent87a65e63bac789bca0607e0b4ab09d62517b95e7 (diff)
downloadopenbmc-4aa406adc1accd959bf64d299d750e8b2083ace3.tar.xz
Merge pull request #9 from Intel-BMC/update
Update
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-supervisor/supervisor.service')
-rw-r--r--meta-openembedded/meta-python/recipes-devtools/python/python3-supervisor/supervisor.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-supervisor/supervisor.service b/meta-openembedded/meta-python/recipes-devtools/python/python3-supervisor/supervisor.service
new file mode 100644
index 000000000..e9d3f706b
--- /dev/null
+++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-supervisor/supervisor.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/supervisor/supervisord.conf
+ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown
+ExecReload=/usr/bin/supervisorctl -c /etc/supervisor/supervisord.conf $OPTIONS reload
+KillMode=process
+Restart=on-failure
+RestartSec=50s
+
+[Install]
+WantedBy=multi-user.target