summaryrefslogtreecommitdiff
path: root/app-backup/bareos/files/bareos-dir.service
blob: a342671d0d00008c0e1e792cf1cb527cacb98ba3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#
# Bareos Director Daemon
#
[Unit]
Description=Bareos Director Daemon
Documentation=man:bareos-dir(8)
Requires=nss-lookup.target network.target remote-fs.target time-sync.target
After=nss-lookup.target network.target remote-fs.target time-sync.target postgresql.service mysql.service mariadb.service
ConditionPathIsDirectory=/var/lib/bareos

[Service]
Type=forking
User=bareos
Group=bareos
WorkingDirectory=/var/lib/bareos
PIDFile=/run/bareos/bareos-dir.9101.pid
StandardError=journal
ExecStartPre=/usr/sbin/bareos-dir -t -f
ExecStart=/usr/sbin/bareos-dir
SuccessExitStatus=0 1 15
#Restart=on-failure

[Install]
Alias=bareos-director.service
WantedBy=multi-user.target