]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/systemd/bacula-fd.service.in
456ea1d4cea4734cc178f1a9fc2a20e04c82d9b2
[bacula/bacula] / bacula / platforms / systemd / bacula-fd.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-fd.service
7 #
8 # Description:
9 #    Used to start the bacula file daemon service (bacula-fd)
10 #
11 #    enable : systemctl enable bacula-fd
12 #    start : systemctl start bacula-fd
13 #
14 #
15
16 # from http://www.freedesktop.org/software/systemd/man/systemd.unit.html
17 [Unit]
18 Description=Bacula File 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=@fd_user@
27 Group=@fd_group@
28 ExecStart=@sbindir@/bacula-fd -c @sysconfdir@/bacula-fd.conf
29 PIDFile=@piddir@/bacula-fd.@fd_port@.pid
30 StandardError=syslog
31
32 [Install]
33 WantedBy=multi-user.target