/lib/systemd/system/bacula-sd.service is in bacula-sd 9.0.6-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | # Systemd Bacula service file
#
# Copyright (C) 2000-2017 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
# /lib/systemd/system/bacula-sd.service
#
# Description:
# Used to start the bacula storage daemon service (bacula-sd)
# enable : systemctl enable bacula-sd
# start : systemctl start bacula-sd
#
#
# from http://www.freedesktop.org/software/systemd/man/systemd.unit.html
[Unit]
Description=Bacula Storage Daemon service
Documentation=man:bacula-sd(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=simple
User=bacula
Group=tape
Environment="CONFIG=/etc/bacula/bacula-sd.conf"
EnvironmentFile=-/etc/default/bacula-sd
ExecStartPre=/usr/sbin/bacula-sd -t -c $CONFIG
ExecStart=/usr/sbin/bacula-sd -fP -c $CONFIG
ExecReload=/usr/sbin/bacula-sd -t -c $CONFIG
ExecReload=/bin/kill -HUP $MAINPID
SuccessExitStatus=15
LimitMEMLOCK=infinity
Restart=on-failure
RestartSec=60
[Install]
WantedBy=multi-user.target
|