summarylogtreecommitdiffstats
path: root/opennebula.service
diff options
context:
space:
mode:
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 db7171423369..582ef3c3917e 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