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