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