summaryrefslogtreecommitdiff
path: root/sysutils/bacula/files/bacula-dir.sh
diff options
context:
space:
mode:
authormjl <mjl@pkgsrc.org>2004-11-06 16:17:38 +0000
committermjl <mjl@pkgsrc.org>2004-11-06 16:17:38 +0000
commit4c69321a7d5e3ef2b32705ab3e01f89db1d2e0cf (patch)
tree2e6a197608cce0971798f09fea981ad1b93e6e3f /sysutils/bacula/files/bacula-dir.sh
parent69a269a87ed21977f4929b5934539a18fe35d827 (diff)
downloadpkgsrc-4c69321a7d5e3ef2b32705ab3e01f89db1d2e0cf.tar.gz
Initial import of bacula 1.36.0, based on the older version in
pkgsrc-wip. Bacula is a set of computer programs that permit you (or the system administrator) to manage backup, recovery, and verification of computer data across a network of computers of different kinds. In technical terms, it is a network client/server based backup program. Bacula is relatively easy to use and efficient, while offering many advanced storage management features that make it easy to find and recover lost or damaged files. Bacula source code has been released under the GPL version 2 license. To Do: Split client/server package, add a frontend (gnome) package.
Diffstat (limited to 'sysutils/bacula/files/bacula-dir.sh')
-rw-r--r--sysutils/bacula/files/bacula-dir.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/bacula/files/bacula-dir.sh b/sysutils/bacula/files/bacula-dir.sh
new file mode 100644
index 00000000000..aa4db46af89
--- /dev/null
+++ b/sysutils/bacula/files/bacula-dir.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# PROVIDE: bacula-dir
+# REQUIRE: DAEMON
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="baculadir"
+rcvar=$name
+command="@PREFIX@/sbin/bacula-dir"
+required_files="@BACULA_ETCDIR@/bacula-dir.conf"
+pidfile="@BACULA_PIDDIR@/bacula-dir.9101.pid"
+command_args="-c ${required_files} -u @BACULA_DIR_USER@ -g @BACULA_GROUP@"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n " ${name}"
+ ${command} ${baculadir_flags} -c ${required_files}
+fi