1 # Systemd Bacula service file
3 # Copyright (C) 2000-2016 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@ @piddir@
23 # From http://www.freedesktop.org/software/systemd/man/systemd.service.html
28 ExecStart=@sbindir@/bacula-dir -c @sysconfdir@/bacula-dir.conf
29 PIDFile=@piddir@/bacula-dir.@dir_port@.pid
30 ExecReload=@sbindir@/bacula-dir -t -c @sysconfdir@/bacula-dir.conf
31 ExecReload=/bin/kill -HUP $MAINPID
35 WantedBy=multi-user.target