diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2020-11-03 03:15:10 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2020-11-03 03:37:11 +0100 |
commit | ead9aaa3dd7ca48012b2b21cc930ee73c8eaa9d3 (patch) | |
tree | b656f589d1ff4d4b0d245afad3d8d22ce5e65368 /roles/common/files/etc/systemd/system/bacula-fd.service | |
parent | 24616de43c39da3fe7efd72426fce078a3afdaea (diff) |
Bacula: refactor systemd service files.
Use unit overrides on top of upstream's service files instead of
overriding entire service files. In particular, upstream uses flag `-P`
so we don't need to use RuntimeDirectory= anymore.
Diffstat (limited to 'roles/common/files/etc/systemd/system/bacula-fd.service')
-rw-r--r-- | roles/common/files/etc/systemd/system/bacula-fd.service | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/roles/common/files/etc/systemd/system/bacula-fd.service b/roles/common/files/etc/systemd/system/bacula-fd.service deleted file mode 100644 index 119b3a2..0000000 --- a/roles/common/files/etc/systemd/system/bacula-fd.service +++ /dev/null @@ -1,25 +0,0 @@ -[Unit] -Description=Bacula File Daemon service -After=network.target - -[Service] -Type=simple -StandardOutput=syslog -ExecStart=/usr/sbin/bacula-fd -f -c /etc/bacula/bacula-fd.conf - -# Hardening -NoNewPrivileges=yes -ProtectHome=read-only -ProtectSystem=strict -ReadWriteDirectories=/var/lib/bacula -RuntimeDirectory=bacula -PrivateTmp=yes -PrivateDevices=yes -ProtectControlGroups=yes -ProtectKernelModules=yes -ProtectKernelTunables=yes -RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 -CapabilityBoundingSet=CAP_DAC_READ_SEARCH - -[Install] -WantedBy=multi-user.target |