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