diff options
Diffstat (limited to 'app-backup/bareos/files/bareos-fd-21.initd')
-rw-r--r-- | app-backup/bareos/files/bareos-fd-21.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app-backup/bareos/files/bareos-fd-21.initd b/app-backup/bareos/files/bareos-fd-21.initd new file mode 100644 index 0000000..f063226 --- /dev/null +++ b/app-backup/bareos/files/bareos-fd-21.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use dns +} + +start() { + ebegin "Starting bareos file daemon" + checkpath -d -m 0750 -o root:bareos /run/bareos + start-stop-daemon --start --quiet --exec /usr/sbin/bareos-fd \ + -- -p /run/bareos/bareos-fd.9102.pid ${FD_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping bareos file daemon" + start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-fd.9102.pid + eend $? +} |