summarylogtreecommitdiffstats
path: root/opennebula.service
diff options
context:
space:
mode:
authorRafael Reggiani Manzo2016-01-16 09:11:40 -0200
committerRafael Reggiani Manzo2016-02-17 19:45:45 -0200
commit3416f3fe951e21077474fba97ab36b64b06b5d18 (patch)
tree098f98aa732f9b6e9e75adfea82998e71ab39578 /opennebula.service
parent774a2bb99a63b4a032660ebc772ce1f9ccad0de3 (diff)
downloadaur-3416f3fe951e21077474fba97ab36b64b06b5d18.tar.gz
Fix systemd service file
It was trying to perform a su which froze requiring password.
Diffstat (limited to 'opennebula.service')
-rw-r--r--opennebula.service5
1 files changed, 3 insertions, 2 deletions
diff --git a/opennebula.service b/opennebula.service
index db717142336..582ef3c3917 100644
--- a/opennebula.service
+++ b/opennebula.service
@@ -2,9 +2,10 @@
Description=OpenNebula management
[Service]
+User=oneadmin
Type=oneshot
-ExecStart=/usr/bin/su - oneadmin /usr/bin/one start
-ExecStop=/usr/bin/su - oneadmin /usr/bin/one stop
+ExecStart=/srv/cloud/one/bin/one start
+ExecStop=/srv/cloud/one/bin/one stop
TimeoutSec=0
StandardInput=tty
RemainAfterExit=yes