summaryrefslogtreecommitdiff
path: root/manualPorts/bareos-filedaemon/bareos-fd
diff options
context:
space:
mode:
Diffstat (limited to 'manualPorts/bareos-filedaemon/bareos-fd')
-rwxr-xr-xmanualPorts/bareos-filedaemon/bareos-fd37
1 files changed, 37 insertions, 0 deletions
diff --git a/manualPorts/bareos-filedaemon/bareos-fd b/manualPorts/bareos-filedaemon/bareos-fd
new file mode 100755
index 0000000..06c6c0a
--- /dev/null
+++ b/manualPorts/bareos-filedaemon/bareos-fd
@@ -0,0 +1,37 @@
+#!/bin/bash
+#
+# /etc/rc.d/bareos-fd: bareos file daemon
+#
+
+case "$1" in
+
+ start)
+
+ mkdir -p /run/bareos/fd
+ chown bareos:bareos /run/bareos/fd
+ /usr/bin/bareos-fd
+
+ ;;
+
+ stop)
+
+ kill $(cat /run/bareos/fd/bareos-fd.9102.pid)
+
+ ;;
+
+ restart)
+
+ "$0" stop
+ "$0" start
+
+ ;;
+
+ *)
+
+ echo "usage: $0 [start|stop|restart]"
+
+ ;;
+
+esac
+
+# End of file