[pkg-bacula-commits] [bacula] 01/01: Restart all daemons on failure
Sven Hartge
hartge-guest at moszumanska.debian.org
Mon Oct 23 14:30:21 UTC 2017
This is an automated email from the git hooks/post-receive script.
hartge-guest pushed a commit to branch master
in repository bacula.
commit 7655c3350bcf59085becd55dfe01f8404f619db8
Author: Sven Hartge <sven at svenhartge.de>
Date: Mon Oct 23 16:27:04 2017 +0200
Restart all daemons on failure
Add restarting after failure to all daemons, making bacula more robust.
---
debian/patches/non-forking-systemd-units.patch | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/debian/patches/non-forking-systemd-units.patch b/debian/patches/non-forking-systemd-units.patch
index b9ddedc..5564266 100644
--- a/debian/patches/non-forking-systemd-units.patch
+++ b/debian/patches/non-forking-systemd-units.patch
@@ -11,7 +11,8 @@ Author: Sven Hartge <sven at svenhartge.de>
+# /lib/systemd/system/bacula-director.service
#
# Description:
- # Used to start/stop/reload the bacula director daemon service (bacula-dir)
+-# Used to start/stop/reload the bacula director daemon service (bacula-dir)
++# Used to start/stop/reload the bacula director daemon service (bacula-director)
#
-# enable : systemctl enable bacula-dir
-# start : systemctl start bacula-dir
@@ -54,7 +55,7 @@ Author: Sven Hartge <sven at svenhartge.de>
WantedBy=multi-user.target
--- a/platforms/systemd/bacula-fd.service.in
+++ b/platforms/systemd/bacula-fd.service.in
-@@ -22,11 +22,15 @@
+@@ -22,12 +22,18 @@
# from http://www.freedesktop.org/software/systemd/man/systemd.service.html
[Service]
@@ -73,11 +74,14 @@ Author: Sven Hartge <sven at svenhartge.de>
+ExecReload=/bin/kill -HUP $MAINPID
+SuccessExitStatus=15
StandardError=syslog
++Restart=on-failure
++RestartSec=60
[Install]
+ WantedBy=multi-user.target
--- a/platforms/systemd/bacula-sd.service.in
+++ b/platforms/systemd/bacula-sd.service.in
-@@ -21,11 +21,15 @@
+@@ -21,13 +21,19 @@
# from http://www.freedesktop.org/software/systemd/man/systemd.service.html
[Service]
@@ -97,4 +101,8 @@ Author: Sven Hartge <sven at svenhartge.de>
+SuccessExitStatus=15
StandardError=syslog
LimitMEMLOCK=infinity
++Restart=on-failure
++RestartSec=60
+ [Install]
+ WantedBy=multi-user.target
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bacula/bacula.git
More information about the pkg-bacula-commits
mailing list