[Unit] Description=Bareos Director Daemon service Documentation=man:bareos-dir(8) Requires=network.target nss-lookup.target time-sync.target After=network-online.target nss-lookup.target remote-fs.target time-sync.target After=postgresql.service bareos-sd.service bareos-fd.service ConditionPathIsDirectory=/var/lib/bareos [Service] Type=simple User=bareos Group=bareos RuntimeDirectory=bareos RuntimeDirectoryMode=0770 RuntimeDirectoryPreserve=yes WorkingDirectory=/var/lib/bareos AmbientCapabilities=CAP_SYS_PTRACE ExecStart=/usr/bin/bareos-dir -f ExecReload=/usr/bin/kill -HUP $MAINPID SuccessExitStatus=0 15 Restart=always [Install] Alias=bareos-director.service WantedBy=multi-user.target