diff options
author | Marc Schiffbauer <mschiff@gentoo.org> | 2021-08-21 00:00:55 -1000 |
---|---|---|
committer | Marc Schiffbauer <mschiff@gentoo.org> | 2021-08-21 00:02:55 -1000 |
commit | 3dabba831c4f4ffe807b2731de0930f69facccec (patch) | |
tree | 37d501bb8d843f783ab4865230c87879e8b37d09 /app-backup/bareos/files | |
parent | pp-text/zotero-bin: drop old 5.0.96.2 (diff) | |
download | gentoo-3dabba831c4f4ffe807b2731de0930f69facccec.tar.gz gentoo-3dabba831c4f4ffe807b2731de0930f69facccec.tar.bz2 gentoo-3dabba831c4f4ffe807b2731de0930f69facccec.zip |
app-backup/bareos: revbump for improved systemd units
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
Diffstat (limited to 'app-backup/bareos/files')
-rw-r--r-- | app-backup/bareos/files/bareos-dir.service | 27 | ||||
-rw-r--r-- | app-backup/bareos/files/bareos-fd.service | 26 | ||||
-rw-r--r-- | app-backup/bareos/files/bareos-sd.service | 28 |
3 files changed, 81 insertions, 0 deletions
diff --git a/app-backup/bareos/files/bareos-dir.service b/app-backup/bareos/files/bareos-dir.service new file mode 100644 index 000000000000..a342671d0d00 --- /dev/null +++ b/app-backup/bareos/files/bareos-dir.service @@ -0,0 +1,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 diff --git a/app-backup/bareos/files/bareos-fd.service b/app-backup/bareos/files/bareos-fd.service new file mode 100644 index 000000000000..e9b4b832afb1 --- /dev/null +++ b/app-backup/bareos/files/bareos-fd.service @@ -0,0 +1,26 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +# +# Bareos File Daemon +# +[Unit] +Description=Bareos File Daemon +Documentation=man:bareos-fd(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-fd.9102.pid +StandardError=journal +ExecStartPre=/usr/sbin/bareos-fd -f -t +ExecStart=/usr/sbin/bareos-fd +SuccessExitStatus=0 15 +#Restart=on-failure + +[Install] +Alias=bareos-filedaemon.service +WantedBy=multi-user.target diff --git a/app-backup/bareos/files/bareos-sd.service b/app-backup/bareos/files/bareos-sd.service new file mode 100644 index 000000000000..80d9edbc9734 --- /dev/null +++ b/app-backup/bareos/files/bareos-sd.service @@ -0,0 +1,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 |