diff options
Diffstat (limited to 'app-backup/bacula/files/1.36.3/bacula-fd-init')
-rw-r--r-- | app-backup/bacula/files/1.36.3/bacula-fd-init | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app-backup/bacula/files/1.36.3/bacula-fd-init b/app-backup/bacula/files/1.36.3/bacula-fd-init new file mode 100644 index 0000000..74d25ec --- /dev/null +++ b/app-backup/bacula/files/1.36.3/bacula-fd-init @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/files/1.36.3/bacula-fd-init,v 1.1 2006/02/17 04:20:48 labmonkey Exp $ + +depend() { + need net + use dns +} + +start() { + local retval=0 + ebegin "Starting bacula file daemon" + start-stop-daemon --start --quiet --exec /usr/sbin/bacula-fd \ + -- ${FD_OPTIONS} + retval=$(( $retval + $? )) + eend $retval +} + +stop() { + local retval=0 + ebegin "Stopping bacula file daemon" + start-stop-daemon --stop --quiet --pidfile /var/run/bacula-fd.*.pid + retval=$(( $retval + $? )) + eend $retval +} |