Commit 052fb3d7 authored by Sven Hartge's avatar Sven Hartge

Change systemd.unit to Type=exec

Type=exec waits for successful execve() before considering a unit
started. This catches more errors during startup, for example when
the executable is missing or of the wrong arch, etc.
parent 4f752d3a
Description: Use Type=exec for systemd-240+
Author: Sven Hartge <sven@svenhartge.de>
--- a/platforms/systemd/bacula-dir.service.in
+++ b/platforms/systemd/bacula-dir.service.in
@@ -23,7 +23,7 @@
# From http://www.freedesktop.org/software/systemd/man/systemd.service.html
[Service]
-Type=simple
+Type=exec
User=bacula
Group=bacula
Environment="CONFIG=/etc/bacula/bacula-dir.conf"
--- a/platforms/systemd/bacula-fd.service.in
+++ b/platforms/systemd/bacula-fd.service.in
@@ -23,7 +23,7 @@
# from http://www.freedesktop.org/software/systemd/man/systemd.service.html
[Service]
-Type=simple
+Type=exec
User=root
Group=root
Environment="CONFIG=/etc/bacula/bacula-fd.conf"
--- a/platforms/systemd/bacula-sd.service.in
+++ b/platforms/systemd/bacula-sd.service.in
@@ -22,7 +22,7 @@
# from http://www.freedesktop.org/software/systemd/man/systemd.service.html
[Service]
-Type=simple
+Type=exec
User=bacula
Group=tape
SupplementaryGroups=bacula
......@@ -16,6 +16,7 @@ debian/fix-libbaccats-rpath
debian/fix-paths-examples-devices
debian/enable-hardening-for-qmake
debian/customize-systemd-units
debian/customize-systemd-240-units
debian/fix-qmake-binary-source-path
debian/make-buildoutput-verbose
debian/use-debian-path-for-interpreter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment