From ead9aaa3dd7ca48012b2b21cc930ee73c8eaa9d3 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 3 Nov 2020 03:15:10 +0100 Subject: 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. --- .../files/etc/systemd/system/bacula-sd.service | 27 ---------------------- 1 file changed, 27 deletions(-) delete mode 100644 roles/bacula-sd/files/etc/systemd/system/bacula-sd.service (limited to 'roles/bacula-sd/files/etc/systemd/system/bacula-sd.service') diff --git a/roles/bacula-sd/files/etc/systemd/system/bacula-sd.service b/roles/bacula-sd/files/etc/systemd/system/bacula-sd.service deleted file mode 100644 index 61ba01d..0000000 --- a/roles/bacula-sd/files/etc/systemd/system/bacula-sd.service +++ /dev/null @@ -1,27 +0,0 @@ -[Unit] -Description=Bacula Storage Daemon service -After=network.target - -[Service] -Type=simple -StandardOutput=syslog -User=bacula -Group=tape -ExecStart=/usr/sbin/bacula-sd -f -c /etc/bacula/bacula-sd.conf - -# Hardening -NoNewPrivileges=yes -PrivateDevices=yes -ProtectHome=yes -ProtectSystem=strict -ReadWriteDirectories=-/var/lib/bacula -ReadWriteDirectories=/mnt/backup/bacula -RuntimeDirectory=bacula -PrivateDevices=yes -ProtectControlGroups=yes -ProtectKernelModules=yes -ProtectKernelTunables=yes -RestrictAddressFamilies=AF_INET AF_INET6 - -[Install] -WantedBy=multi-user.target -- cgit v1.2.3