]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/systemd/bacula-dir.service.in
28995ad63e656c839d071fdcd7f35091cd495a19
[bacula/bacula] / bacula / platforms / systemd / bacula-dir.service.in
1 # Systemd Bacula service file
2 #
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6 # /lib/systemd/system/bacula-dir.service
7 #
8 # Description:
9 #    Used to start/stop/reload the bacula director daemon service (bacula-dir)
10 #
11 #    enable : systemctl enable bacula-dir
12 #    start : systemctl start bacula-dir
13 #
14 #
15
16 # From http://www.freedesktop.org/software/systemd/man/systemd.unit.html
17 [Unit]
18 Description=Bacula Director Daemon service
19 Requires=network.target
20 After=network.target
21 RequiresMountsFor=@working_dir@ @sysconfdir@ @sbindir@ @piddir@
22
23 # From http://www.freedesktop.org/software/systemd/man/systemd.service.html
24 [Service]
25 Type=forking
26 User=@dir_user@
27 Group=@dir_group@
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
32 StandardError=syslog
33
34 [Install]
35 WantedBy=multi-user.target