diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:12:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:12:15 +0100 |
commit | 3f7826d8856457be233edea5999a25e374f54625 (patch) | |
tree | 7b49d251a79cf55d5e29ceb9af99308b5f037628 /backup/bareos/files/bareos-dir.initd | |
parent | 6deea6f9112b20068bdb8e82f049e28508efac83 (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'backup/bareos/files/bareos-dir.initd')
-rw-r--r-- | backup/bareos/files/bareos-dir.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/backup/bareos/files/bareos-dir.initd b/backup/bareos/files/bareos-dir.initd new file mode 100644 index 000000000000..826d27a829c9 --- /dev/null +++ b/backup/bareos/files/bareos-dir.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use dns bareos-fd bareos-sd +} + +start() { + ebegin "Starting bareos director" + checkpath -d -m 0750 -o bareos:bareos /run/bareos + start-stop-daemon --start --quiet --exec /usr/sbin/bareos-dir \ + -- ${DIR_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping bareos director" + start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-dir.*.pid + eend $? +} |