diff options
Diffstat (limited to 'app-backup/bacula/files/2.0.2/bacula-fd-init')
-rw-r--r-- | app-backup/bacula/files/2.0.2/bacula-fd-init | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app-backup/bacula/files/2.0.2/bacula-fd-init b/app-backup/bacula/files/2.0.2/bacula-fd-init new file mode 100644 index 000000000000..fa2c3e6e8e78 --- /dev/null +++ b/app-backup/bacula/files/2.0.2/bacula-fd-init @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-backup/bacula/files/2.0.2/bacula-fd-init,v 1.1 2007/02/28 14:40:44 wschlich Exp $ + +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 $? +} |