summaryrefslogtreecommitdiffstats
path: root/systemd/xen-orchestra.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/xen-orchestra.service')
-rw-r--r--systemd/xen-orchestra.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/systemd/xen-orchestra.service b/systemd/xen-orchestra.service
new file mode 100644
index 0000000..766eae1
--- /dev/null
+++ b/systemd/xen-orchestra.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Xen-Orchestra
+After=redis@xen-orchestra.service
+Wants=network.target redis@xen-orchestra.service
+
+[Service]
+User=xo
+Group=xo
+ENVIRONMENT=NODE_ENV=PRODUCTION
+ExecStart=/opt/xen-orchestra/start.sh
+Restart=always
+RestartSec=15
+SyslogIdentifier=orchestra
+
+[Install]
+WantedBy=multi-user.target