diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2009-03-19 20:56:09 +0100 |
---|---|---|
committer | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2009-03-19 20:56:09 +0100 |
commit | 6a21d65d2840c58cfa7cd749a04669d8f7980646 (patch) | |
tree | 00b1aa153b69cda8cf9406c4700fd7730c34d3a5 /recipes/havp/files | |
parent | dcfe7349b369a87881cf1fa43085d9e9c5609fcf (diff) | |
parent | 6f854d71c347475d53d5080a5490625345d95d12 (diff) |
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/havp/files')
-rw-r--r-- | recipes/havp/files/doc.configure.txt | 21 | ||||
-rw-r--r-- | recipes/havp/files/havp.init | 33 | ||||
-rw-r--r-- | recipes/havp/files/volatiles.05_havp | 5 |
3 files changed, 59 insertions, 0 deletions
diff --git a/recipes/havp/files/doc.configure.txt b/recipes/havp/files/doc.configure.txt new file mode 100644 index 0000000000..f88fb405ec --- /dev/null +++ b/recipes/havp/files/doc.configure.txt @@ -0,0 +1,21 @@ +The following items needs to be considered when using havp: + +1. Madatory locking + + The filesystem on which SCANTEMPFILE lives must have madatory + locking enabled (mand option to mount). Note that nfs does not + support madatory locking. + +2. Scanning directory size + + If you have limited space on the SCANTEMPFILE then you will need + to set MAXSCANSIZE. + +3. Transparent proxy + + For transparent proxying you need an IP tables rule such as: + + iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 + + where eth0 is the incomming port, and 8080 is the port that havp + is running on. diff --git a/recipes/havp/files/havp.init b/recipes/havp/files/havp.init new file mode 100644 index 0000000000..245a28e7bc --- /dev/null +++ b/recipes/havp/files/havp.init @@ -0,0 +1,33 @@ +#!/bin/sh +DAEMON=/usr/sbin/havp +HAVP_CONFIG=/etc/havp/havp.config +PIDFILE=/var/run/havp/havp.pid +NAME="havp" +DESC="HAVP" + +test -r /etc/default/havp && . /etc/default/havp +test -x "$DAEMON" || exit 0 +test ! -r "$HAVP_CONFIG" && exit 0 + +case "$1" in + start) + echo "Starting $DESC: " + start-stop-daemon --oknodo -S -x $DAEMON -- -c $HAVP_CONFIG + echo "$NAME." + ;; + + stop) + echo "Stopping $DESC:" + start-stop-daemon -K -p $PIDFILE + ;; + + restart) + $0 stop >/dev/null 2>&1 + $0 start + ;; + + *) + echo "Usage: $0 {start|stop|restart}" + exit 0 + ;; +esac diff --git a/recipes/havp/files/volatiles.05_havp b/recipes/havp/files/volatiles.05_havp new file mode 100644 index 0000000000..3a9551fc1f --- /dev/null +++ b/recipes/havp/files/volatiles.05_havp @@ -0,0 +1,5 @@ +# <type> <owner> <group> <mode> <path> <linksource> +d havp havp 0775 /var/log/havp none +d havp havp 0755 /var/lib/havp none +d havp havp 0755 /var/run/havp none +d havp havp 0755 /var/tmp/havp none |