summaryrefslogtreecommitdiff
path: root/app-backup/bareos/files/bareos-sd.service
blob: 80d9edbc97344eac39748dcbee500f324760ab5c (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
28
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
#
# Bareos Storage Daemon
#
[Unit]
Description=Bareos Storage Daemon
Documentation=man:bareos-sd(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

[Service]
Type=forking
User=root
Group=bareos
WorkingDirectory=/var/lib/bareos
PIDFile=/run/bareos/bareos-sd.9103.pid
StandardError=journal
ExecStartPre=/usr/sbin/bareos-sd -t -f
ExecStart=/usr/sbin/bareos-sd
# enable this for scsicrypto-sd
# CapabilityBoundingSet=cap_sys_rawio+ep
SuccessExitStatus=0 15
#Restart=on-failure

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