From 85b93697d95687486f61ed79deaae5e1fc4c9512 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 16 Dec 2009 23:50:29 +0000 Subject: added sample config --- etc/rhdropbox/autostart | 2 ++ etc/rhdropbox/sample/config | 32 ++++++++++++++++++++++++++++++++ etc/rhdropbox/sample/newfile.sh | 16 ++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 etc/rhdropbox/autostart create mode 100644 etc/rhdropbox/sample/config create mode 100755 etc/rhdropbox/sample/newfile.sh diff --git a/etc/rhdropbox/autostart b/etc/rhdropbox/autostart new file mode 100644 index 0000000..067d2c0 --- /dev/null +++ b/etc/rhdropbox/autostart @@ -0,0 +1,2 @@ +sample +#disabled diff --git a/etc/rhdropbox/sample/config b/etc/rhdropbox/sample/config new file mode 100644 index 0000000..616f9e4 --- /dev/null +++ b/etc/rhdropbox/sample/config @@ -0,0 +1,32 @@ +############################# +## Main options # +############################# + +## the path to the command socket +command-sock /var/run/rhdropbox/sample.sock + +## change user and group after init +#username nobody +#groupname nogroup + + +############################# +## Debug options # +############################# + +## don't run in background +#nodaemonize + +## additional log to standard output with a level of 5 +#log stdout:5 + + +############################# +## Expert options # +############################# + +## log to syslog with a level of 3 +log syslog:3,rhdropbox-sample,daemon + +## chroot to users home directory +#chroot /var/run/rhdropbox diff --git a/etc/rhdropbox/sample/newfile.sh b/etc/rhdropbox/sample/newfile.sh new file mode 100755 index 0000000..bef4ea5 --- /dev/null +++ b/etc/rhdropbox/sample/newfile.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +DIR=$1 +FILENAME=$2 +SIZE=$3 + +if [ -z "$FILENAME" ]; then + exit 1; +fi + +echo "new file of size $SIZE detected: $DIR/$FILENAME" >> /tmp/rhdropbox-sample.log +sleep 5 +rm -f $DIR/$FILENAME >> /tmp/rhdropbox-sample.log 2>&1 + +exit 0 + -- cgit v1.2.3