Currently, the systemd daemons are not restarted on failure. This patch
adds this functionality and sets the defaults to those defined in
upstart. This resolves to 3 fails per 30 minutes for osd, mon and mds
and 5 fails per 30 seconds for radosgw.
Signed-off-by: Boris Ranto <branto@redhat.com>
ProtectSystem=full
PrivateTmp=true
TasksMax=infinity
+Restart=on-failure
+StartLimitInterval=30min
+StartLimitBurst=3
[Install]
WantedBy=ceph-mds.target
ProtectSystem=full
PrivateTmp=true
TasksMax=infinity
+Restart=on-failure
+StartLimitInterval=30min
+StartLimitBurst=3
[Install]
WantedBy=ceph-mon.target
ProtectSystem=full
PrivateTmp=true
TasksMax=infinity
+Restart=on-failure
+StartLimitInterval=30min
+StartLimitBurst=3
[Install]
WantedBy=ceph-osd.target
ProtectSystem=full
PrivateTmp=true
TasksMax=infinity
+Restart=on-failure
+StartLimitInterval=30s
+StartLimitBurst=5
[Install]
WantedBy=ceph-radosgw.target