diff options
author | Bill Marquette <bill.marquette@gmail.com> | 2009-02-06 19:18:00 -0600 |
---|---|---|
committer | Bill Marquette <bill.marquette@gmail.com> | 2009-02-06 19:18:00 -0600 |
commit | 55eddd7accf2c5f9b0f52b22a010c4c4b7c130d1 (patch) | |
tree | ba4783bab1dd65f1ceef2dfac9fdbd515531d18b /packages/havp.sh | |
parent | 67780cc9d469288742aea5bc378c29a54edd5ec5 (diff) | |
download | pfsense-packages-55eddd7accf2c5f9b0f52b22a010c4c4b7c130d1.tar.gz pfsense-packages-55eddd7accf2c5f9b0f52b22a010c4c4b7c130d1.tar.bz2 pfsense-packages-55eddd7accf2c5f9b0f52b22a010c4c4b7c130d1.zip |
mv packages to config dir to match web layout
Diffstat (limited to 'packages/havp.sh')
-rw-r--r-- | packages/havp.sh | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/packages/havp.sh b/packages/havp.sh deleted file mode 100644 index 88a97250..00000000 --- a/packages/havp.sh +++ /dev/null @@ -1,85 +0,0 @@ -#!/bin/sh -# HAVP Init script -# 6/23/06 - Gary Buckmaster -# Modified by Rajkumar S. -# -pidfile=/var/run/havp/havp.pid -piddir=/var/run/havp/ -logdir=/var/log/havp/ -required_dirs=/var/tmp/havp -required_files=/usr/local/etc/havp/havp.config - - -rc_start() -{ - if [ ! -d $piddir ] - then - mkdir -p $piddir - chown havp:havp $piddir - fi - if [ ! -d $logdir ] - then - mkdir -p $logdir - chown havp:havp $logdir - fi - if [ ! -f $required_files ] - then - echo "FATAL: Missing HAVP config file: $required_files" - return - fi - if [ ! -d $required_dirs ] - then - echo "FATAL: Missing HAVP working director: $required_dirs" - mkdir -p $required_dirs - chown havp:havp $required_dirs - fi - if [ -f $pidfile ] - then - pid=$(sed 's/ //g' $pidfile) - echo "FATAL: HAVP already running? pid: $pid" - return - else - echo "Starting HAVP Antivirus HTTP Proxy" - /usr/local/sbin/havp & - sleep 4 - /usr/local/bin/php -q /usr/local/pkg/havp_startup.inc & - sleep 4 - if [ -f $pidfile ] - then - pid=$(sed 's/ //g' $pidfile) - echo "Started pid: $pid" - else - echo "An error occurred starting HAVP" - return - fi - fi -} - -rc_stop() -{ - pid=$(sed 's/ //g' $pidfile) - if [ ! -f $pidfile ] - then - echo "FATAL: HAVP already running pid: $pid" - return - else - echo "Stopping HAVP pid: $pid" - kill $pid - rm -f $required_dirs/* - fi -} - -case $1 in - start) - rc_start - ;; - stop) - rc_stop - ;; - restart) - rc_stop - sleep 5 - rc_start - ;; -esac - |