summarylogtreecommitdiffstats
path: root/bacula-dir.service
blob: 2febfd4a2dd913a9b01b2877320ac8e5dfab19de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Bacula Director Daemon service
#

[Unit]
Description=Bacula Director
Requires=network.target
After=network.target remote-fs.target syslog.target
# Dependency about the database
# We let administrators decide if they need it (if local db instance)
#Wants=sqlite3.service
# Check if working dir exist and is a directory
ConditionPathIsDirectory=/var/lib/bacula

[Service]
Type=forking
Restart=always
PIDFile=/run/bacula-dir.9101.pid
# EnvironmentFile=-/etc/sysconfig/bacula-dir
ExecStart=/usr/bin/bacula-dir -c /etc/bacula/bacula-dir.conf

[Install]
WantedBy=multi-user.target