]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/systemd/bacula-sd.service.in
839605cd3fb7384cbd3f2c03d010ad90993d9a5f
[bacula/bacula] / bacula / platforms / systemd / bacula-sd.service.in
1 # Systemd Bacula service file
2 #
3 # Copyright (C) 2000-2017 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6 # /lib/systemd/system/bacula-sd.service
7 #
8 # Description:
9 #    Used to start the bacula storage daemon service (bacula-sd)
10 #    enable : systemctl enable bacula-sd
11 #    start : systemctl start bacula-sd
12 #
13 #
14
15 # from http://www.freedesktop.org/software/systemd/man/systemd.unit.html
16 [Unit]
17 Description=Bacula Storage Daemon service
18 Requires=network.target
19 After=network.target
20 RequiresMountsFor=@working_dir@ @sysconfdir@ @sbindir@ @piddir@
21
22 # from http://www.freedesktop.org/software/systemd/man/systemd.service.html
23 [Service]
24 Type=simple
25 User=@sd_user@
26 Group=@sd_group@
27 ExecStart=@sbindir@/bacula-sd -fP -c @sysconfdir@/bacula-sd.conf
28 SuccessExitStatus=15
29 LimitMEMLOCK=infinity
30
31 [Install]
32 WantedBy=multi-user.target