Bacula - Downgrade FD 7 Bionic

apt-get update && apt-get dist-upgrade
apt-get remove bacula-fd
apt-get autoremove
wget http://mirrors.kernel.org/ubuntu/pool/universe/b/bacula/bacula-common_7.0.5+dfsg-4build1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/b/bacula/bacula-fd_7.0.5+dfsg-4build1_amd64.deb
dpkg -i bacula-common_7.0.5+dfsg-4build1_amd64.deb
dpkg -i bacula-fd_7.0.5+dfsg-4build1_amd64.deb
apt-mark hold bacula-common
apt-mark hold bacula-fd
apt-get update && apt-get dist-upgrade

Edit /etc/systemd/system/bacula-fd.service:

[Unit]
Description=Bacula File Daemon service
Documentation=man:bacula-fd(8)
Requires=network.target
After=network.target
RequiresMountsFor=/var/lib/bacula /etc/bacula /usr/sbin
# from http://www.freedesktop.org/software/systemd/man/systemd.service.html
[Service]
Type=forking
User=root
Group=root
Environment="CONFIG=/etc/bacula/bacula-fd.conf"
EnvironmentFile=-/etc/default/bacula-fd
ExecStartPre=/usr/sbin/bacula-fd -c $CONFIG
ExecStart=/usr/sbin/bacula-fd -c $CONFIG
ExecReload=/bin/kill -HUP $MAINPID
SuccessExitStatus=15
Restart=on-failure
RestartSec=60
PIDFile=/run/bacula/bacula-fd.9102.pid
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start bacula-fd
systemctl enable bacula-fd

Sources:

  • https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6