summarylogtreecommitdiffstats
path: root/opennebula.service
diff options
context:
space:
mode:
authorsulaweyo2017-09-07 16:36:54 +0200
committersulaweyo2017-09-07 16:36:54 +0200
commit2ddc061bf51f5ae42ed93145603343fe0cfa7c7f (patch)
tree8074cf1dbda54bf6450d2585a5be9139e28cc1bc /opennebula.service
parent92edc8edc0d5004cb2bdfe60154639231de76fe3 (diff)
downloadaur-2ddc061bf51f5ae42ed93145603343fe0cfa7c7f.tar.gz
service changes to ensure service restarts on every exit code and as well restarts dependant services
Diffstat (limited to 'opennebula.service')
-rw-r--r--opennebula.service6
1 files changed, 4 insertions, 2 deletions
diff --git a/opennebula.service b/opennebula.service
index 443641a8825..89d2e683a56 100644
--- a/opennebula.service
+++ b/opennebula.service
@@ -1,8 +1,10 @@
[Unit]
Description=OpenNebula management
-After=syslog.target network.target local-fs.target remote-fs.target mysqld.service
+After=syslog.target network.target local-fs.target remote-fs.target
+Requires=mysqld.service
Before=opennebula-scheduler.service
BindTo=opennebula-scheduler.service
+Wants=opennebula-sunstone.service opennebula-econe.service opennebula-onegate.service opennebula-oneflow.service opennebula-scheduler.service
[Service]
User=oneadmin
@@ -20,7 +22,7 @@ ExecStartPre=/usr/bin/logrotate -s /tmp/logrotate.state -f /etc/logrotate.d/open
ExecStop=/bin/kill -TERM $MAINPID
ExecStopPost=/usr/bin/rm /var/lock/one/one
PIDFile=/var/run/one/oned.pid
-Restart=on-abnormal
+Restart=always
[Install]
WantedBy=multi-user.target