[pkg-bacula-commits] [bacula] 01/01: Fix dependencies of bacula-dir.service
Sven Hartge
hartge-guest at moszumanska.debian.org
Sat Sep 10 19:45:50 UTC 2016
This is an automated email from the git hooks/post-receive script.
hartge-guest pushed a commit to branch nonroot-filed
in repository bacula.
commit ad66b4e123d77021d4268526a87405cdb13bad59
Author: Sven Hartge <sven at svenhartge.de>
Date: Sat Sep 10 21:44:06 2016 +0200
Fix dependencies of bacula-dir.service
The init-scripts declares a soft-dependency (Should-Start) on
mysql and postgres. Do the same for the systemd unit, so that
the director is always started _after_ the database servers.
(This does of course not work for a remote database, but there
is nothing we can do in that case.)
---
debian/patches/non-forking-systemd-units.patch | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/patches/non-forking-systemd-units.patch b/debian/patches/non-forking-systemd-units.patch
index e00ebba..2085d8d 100644
--- a/debian/patches/non-forking-systemd-units.patch
+++ b/debian/patches/non-forking-systemd-units.patch
@@ -3,7 +3,13 @@ Author: Sven Hartge <sven at svenhartge.de>
--- a/platforms/systemd/bacula-dir.service.in
+++ b/platforms/systemd/bacula-dir.service.in
-@@ -22,13 +22,16 @@
+@@ -17,18 +17,21 @@
+ [Unit]
+ Description=Bacula Director Daemon service
+ Requires=network.target
+-After=network.target
++After=network.target postgresql.service mysql.service
+ RequiresMountsFor=@working_dir@ @sysconfdir@ @sbindir@ @piddir@
# From http://www.freedesktop.org/software/systemd/man/systemd.service.html
[Service]
--
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