1 # Systemd Bacula service file
3 # Copyright (C) 2000-2017 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
6 # /lib/systemd/system/bacula-dir.service
9 # Used to start/stop/reload the bacula director daemon service (bacula-dir)
11 # enable : systemctl enable bacula-dir
12 # start : systemctl start bacula-dir
16 # From http://www.freedesktop.org/software/systemd/man/systemd.unit.html
18 Description=Bacula Director Daemon service
19 Requires=network.target
20 After=network.target multi-user.target
21 RequiresMountsFor=@working_dir@ @sysconfdir@ @sbindir@
23 # From http://www.freedesktop.org/software/systemd/man/systemd.service.html
28 ExecStart=@sbindir@/bacula-dir -fP -c @sysconfdir@/bacula-dir.conf
29 ExecReload=@sbindir@/bacula-dir -t -c @sysconfdir@/bacula-dir.conf
30 ExecReload=/bin/kill -HUP $MAINPID
34 WantedBy=multi-user.target