summaryrefslogtreecommitdiff
path: root/sysutils/filewatcherd/files
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/filewatcherd/files')
-rw-r--r--sysutils/filewatcherd/files/filewatcherd.in29
-rw-r--r--sysutils/filewatcherd/files/pkg-message.in25
-rw-r--r--sysutils/filewatcherd/files/watchtab.sample1
3 files changed, 55 insertions, 0 deletions
diff --git a/sysutils/filewatcherd/files/filewatcherd.in b/sysutils/filewatcherd/files/filewatcherd.in
new file mode 100644
index 000000000000..4ec09b743851
--- /dev/null
+++ b/sysutils/filewatcherd/files/filewatcherd.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+# $FreeBSD$
+#
+# PROVIDE: filewatcherd
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable filewatcherd:
+#
+# filewatcherd_enable (bool): Set it to "YES" to enable filewatcherd
+# Default is "NO".
+# filewatcherd_conf (path): Set full path to config file.
+# Default is "%%PREFIX%%/etc/watchtab".
+
+. /etc/rc.subr
+
+name=filewatcherd
+rcvar=filewatcherd_enable
+
+load_rc_config $name
+
+: ${filewatcherd_enable:=NO}
+: ${filewatcherd_conf="%%PREFIX%%/etc/watchtab"}
+
+command=%%PREFIX%%/sbin/filewatcherd
+command_args="${filewatcherd_conf}"
+required_files=${filewatcherd_conf}
+
+run_rc_command "$1"
diff --git a/sysutils/filewatcherd/files/pkg-message.in b/sysutils/filewatcherd/files/pkg-message.in
new file mode 100644
index 000000000000..4be99eb49c69
--- /dev/null
+++ b/sysutils/filewatcherd/files/pkg-message.in
@@ -0,0 +1,25 @@
+========================================================================
+filwatcherd configuration files were installed in the following directory:
+
+ %%ETCDIR%%
+
+Before starting the server or the client you need to perform the
+following steps:
+
+1) Copy the appropriate sample configuration file as follows:
+
+ cp %%ETCDIR%%/watchtab.sample %%ETCDIR%%/watchtab
+
+2) Edit filewatcherd's configuration file to suit your needs:
+
+ $EDITOR %%ETCDIR%%/watchtab
+
+3) Add the following line to your rc.conf:
+
+ filewatcherd_enable="YES"
+
+
+Then you can start filewatcherd by issuing the following command:
+
+ %%PREFIX%%/etc/rc.d/filewatcherd start
+========================================================================
diff --git a/sysutils/filewatcherd/files/watchtab.sample b/sysutils/filewatcherd/files/watchtab.sample
new file mode 100644
index 000000000000..15211c0cfe4d
--- /dev/null
+++ b/sysutils/filewatcherd/files/watchtab.sample
@@ -0,0 +1 @@
+/root/wolverine delete 0.1 touch ${TRIGGER}