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-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]
18Description=Bacula File Daemon service
19Requires=network.target
20After=network.target
21RequiresMountsFor=@working_dir@ @sysconfdir@ @sbindir@
22
23# from http://www.freedesktop.org/software/systemd/man/systemd.service.html
24[Service]
25Type=simple
26User=@fd_user@
27Group=@fd_group@
28ExecStart=@sbindir@/bacula-fd -fP -c @sysconfdir@/bacula-fd.conf
29SuccessExitStatus=15
30
31[Install]
32WantedBy=multi-user.target
33