1 # This file is part of package Bacula Director Daemon
3 # Copyright (c) 2011 Free Software Foundation Europe e.V.
5 # Author: Bruno Friedmann
7 # Used to start the bacula director daemon service (bacula-dir)
8 # will be installed as /lib/systemd/system/bacula-dir.service
9 # enable : systemctl enable bacula-dir.service
10 # start : systemctl start bacula-dir.service
12 # Bacula Director Daemon service
15 Description=Bacula Director Daemon service
17 Requires=var-run.mount nss-lookup.target network.target remote-fs.target syslog.target time-sync.target
18 After=var-run.mount nss-lookup.target network.target remote-fs.target syslog.target time-sync.target
19 # Dependency about the database
20 # We let administrators decide if they need it (if local db instance)
21 # Wants=@DEFAULT_DB_TYPE@.service
22 # Check if working dir exist and is a directory
23 ConditionPathIsDirectory=@working_dir@
29 PIDFile=@piddir@/bacula-dir.pid
30 # EnvironmentFile=-/etc/sysconfig/bacula-dir
32 ExecStart=@sbindir@/bacula-dir -u @dir_user@ -g @dir_group@ -c @sysconfdir@/bacula-dir.conf
33 # This daemon should be able to reload the conf file
34 #ExecReload=/sbin/killproc -p @piddir@/bacula-dir.pid -HUP @sbindir@/bacula-dir
37 WantedBy=multi-user.target