summaryrefslogtreecommitdiffstats
path: root/base/fam/famd
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-09-21 18:40:22 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-09-21 18:40:22 +0200
commit433398f14f36f3f4cc4ab3e128c16f8ff3ef5dfd (patch)
tree445f86c639192184e6dc74103fc8916c0c3c8ff6 /base/fam/famd
parente31cb7fa4bff9b0da5a2c13405b005f31da8a4aa (diff)
downloadnutyx-pakxe-433398f14f36f3f4cc4ab3e128c16f8ff3ef5dfd.tar.gz
nutyx-pakxe-433398f14f36f3f4cc4ab3e128c16f8ff3ef5dfd.tar.bz2
nutyx-pakxe-433398f14f36f3f4cc4ab3e128c16f8ff3ef5dfd.tar.xz
nutyx-pakxe-433398f14f36f3f4cc4ab3e128c16f8ff3ef5dfd.zip
Ajout de fam#2.7.0-1
Diffstat (limited to 'base/fam/famd')
-rw-r--r--base/fam/famd37
1 files changed, 37 insertions, 0 deletions
diff --git a/base/fam/famd b/base/fam/famd
new file mode 100644
index 000000000..6e20dd1b0
--- /dev/null
+++ b/base/fam/famd
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Begin $rc_base/init.d/famd
+
+# Based on sysklogd script from LFS-3.1 and earlier.
+# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
+
+#$Id: famd,v 1.1 2008/03/11 20:33:25 install Exp $
+
+
+. /etc/sysconfig/rc
+. $rc_functions
+
+case "$1" in
+ start)
+ boot_mesg "Starting File Alteration Monitor..."
+ loadproc /usr/sbin/famd -T 0 -c /etc/fam/fam.conf
+ ;;
+
+ stop)
+ boot_mesg "Stopping File Atleration Monitor..."
+ killproc /usr/sbin/famd
+ ;;
+
+
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+
+ *)
+ echo "Usage: $0 {start|stop|restart}"
+ exit 1
+ ;;
+esac
+
+# End $rc_base/init.d/famd