diff options
author | Linux User <larena@df1844j.(none)> | 2009-12-09 08:26:07 +0000 |
---|---|---|
committer | Linux User <larena@df1844j.(none)> | 2009-12-09 08:26:07 +0000 |
commit | dcc2dc6e110419027ac70bf08c2238643281ac18 (patch) | |
tree | 40b0a08ea1b9222c40fba535a0efd4c891380d84 /testing/bacula-client/bacula-fd-init | |
parent | fc6f7a11cc78ec28ce5e5aaf7fe806abc9f33c8c (diff) | |
download | aports-dcc2dc6e110419027ac70bf08c2238643281ac18.tar.bz2 aports-dcc2dc6e110419027ac70bf08c2238643281ac18.tar.xz |
testing/bacula-client: new aport
Diffstat (limited to 'testing/bacula-client/bacula-fd-init')
-rw-r--r-- | testing/bacula-client/bacula-fd-init | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/bacula-client/bacula-fd-init b/testing/bacula-client/bacula-fd-init new file mode 100644 index 0000000000..618b3508c7 --- /dev/null +++ b/testing/bacula-client/bacula-fd-init @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/app-backup/bacula/files/3.0.3/bacula-fd-init,v 1.1 2009/11/08 17:14:46 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 $? +} |