B #3183: Service restart window (#3723)

Lower restart window from 300 to 60 seconds for existing services
opennebula and openenbula-scheduler, set same restart mechanism
to the rest of services.
This commit is contained in:
Vlastimil Holer authored and Ruben S. Montero committed 2019-09-18 10:05:16 +02:00
1 parent 7598dc4bb4
commit 4b4edb6460
8 files changed
+27 -2

No files matched your search

@@ -10,6 +10,10 @@ Group=oneadmin
User=oneadmin
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-econe -s /var/lib/one/.logrotate.status
ExecStart=/usr/bin/ruby /usr/lib/one/ruby/cloud/econe/econe-server.rb
StartLimitInterval=60
StartLimitBurst=3
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
@@ -10,6 +10,10 @@ Group=oneadmin
User=oneadmin
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-flow -s /var/lib/one/.logrotate.status
ExecStart=/usr/bin/ruby /usr/lib/one/oneflow/oneflow-server.rb
StartLimitInterval=60
StartLimitBurst=3
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
@@ -10,6 +10,10 @@ Group=oneadmin
User=oneadmin
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-gate -s /var/lib/one/.logrotate.status
ExecStart=/usr/bin/ruby /usr/lib/one/onegate/onegate-server.rb
StartLimitInterval=60
StartLimitBurst=3
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
@@ -9,6 +9,10 @@ Group=oneadmin
User=oneadmin
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-hem -s /var/lib/one/.logrotate.status
ExecStart=/usr/bin/ruby /usr/lib/one/onehem/onehem-server.rb
StartLimitInterval=60
StartLimitBurst=3
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
@@ -9,6 +9,10 @@ User=oneadmin
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-novnc -s /var/lib/one/.logrotate.status
ExecStart=/usr/bin/novnc-server start
PIDFile=/var/lock/one/.novnc.lock
StartLimitInterval=60
StartLimitBurst=3
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
@@ -2,6 +2,7 @@
Description=OpenNebula Cloud Scheduler Daemon
After=syslog.target network.target remote-fs.target
After=opennebula.service
AssertFileNotEmpty=/var/lib/one/.one/one_auth
[Service]
Type=simple
@@ -9,7 +10,7 @@ Group=oneadmin
User=oneadmin
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-scheduler -s /var/lib/one/.logrotate.status
ExecStart=/usr/bin/mm_sched
StartLimitInterval=300
StartLimitInterval=60
StartLimitBurst=3
Restart=on-failure
RestartSec=5
@@ -11,6 +11,10 @@ Group=oneadmin
User=oneadmin
ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula-sunstone -s /var/lib/one/.logrotate.status
ExecStart=/usr/bin/ruby /usr/lib/one/sunstone/sunstone-server.rb
StartLimitInterval=60
StartLimitBurst=3
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
+1 -1
View File
@@ -12,7 +12,7 @@ ExecStartPre=-/usr/sbin/logrotate -f /etc/logrotate.d/opennebula -s /var/lib/one
ExecStart=/usr/bin/oned -f
ExecStopPost=/usr/share/one/follower_cleanup
PIDFile=/var/lock/one/one
StartLimitInterval=300
StartLimitInterval=60
StartLimitBurst=3
Restart=on-failure
RestartSec=5