D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
lib
/
systemd
/
system
/
Filename :
bareos-fd.service
back
Copy
# # Copyright (C) 2013-2023 Bareos GmbH & Co. KG # Copyright (c) 2011 Free Software Foundation Europe e.V., Author: Bruno Friedmann # [Unit] Description=Bareos File Daemon service Documentation=man:bareos-fd(8) Requires=network.target nss-lookup.target time-sync.target After=network-online.target nss-lookup.target local-fs.target remote-fs.target time-sync.target # Check if working dir exist ConditionPathExists=/var/lib/bareos # Limit the number of restart per day StartLimitIntervalSec=1d [Service] Type=simple User=root Group=bareos WorkingDirectory=/var/lib/bareos ExecStart=/usr/sbin/bareos-fd -f SuccessExitStatus=0 15 # IOSchedulingClass=idle # Increase the maximum number of open file descriptors LimitNOFILE=8192:524288 # Restart on failure, wait 30 seconds Restart=on-failure RestartSec=30 # Limit the number of restart to 10. to reset counter use systemctl reset-failed bareos-fd StartLimitBurst=10 # Don't restart on wrong exec arguments and configuration errors. RestartPreventExitStatus=41 42 [Install] Alias=bareos-filedaemon.service WantedBy=multi-user.target