summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webvirtmgr.ini.save8
-rw-r--r--webvirtmgr.service15
2 files changed, 23 insertions, 0 deletions
diff --git a/webvirtmgr.ini.save b/webvirtmgr.ini.save
new file mode 100644
index 000000000000..413e074a1eb5
--- /dev/null
+++ b/webvirtmgr.ini.save
@@ -0,0 +1,8 @@
+[program:webvirtmgr]
+command=/usr/bin/python2 /usr/lib/webvirtmgr/manage.py run_gunicorn -c /usr/lib/webvirtmgr/conf/gunicorn.conf.py
+directory=/usr/lib/webvirtmgr
+autostart=true
+autorestart=true
+stdout_logfile=/var/log/supervisor/webvirtmgr.log
+redirect_stderr=true
+user=webvirtmgr
diff --git a/webvirtmgr.service b/webvirtmgr.service
new file mode 100644
index 000000000000..be7801da9d8f
--- /dev/null
+++ b/webvirtmgr.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=WebVirtMgr
+
+[Service]
+Environment=WEBVIRTMGR_DAEMON=/usr/lib/webvirtmgr
+Environment=WEBVIRTMGR_LOCK_DIR=/var/lock/webvirtmgr
+Environment=WEBVIRTMGR_USER=webvirtmgr
+Environment=WEBVIRTMGR_GROUP=webvirtmgr
+User=webvirtmgr
+Group=webvirtmgr
+ExecStart=/usr/bin/python2 /usr/lib/webvirtmgr/manage.py run_gunicorn -c /usr/lib/webvirtmgr/conf/gunicorn.conf.py
+Type=simple
+
+[Install]
+WantedBy=multi-user.target