aboutsummaryrefslogtreecommitdiff
path: root/security/sguil-sensor
diff options
context:
space:
mode:
authorBoris Samorodov <bsam@FreeBSD.org>2007-01-16 12:45:12 +0000
committerBoris Samorodov <bsam@FreeBSD.org>2007-01-16 12:45:12 +0000
commitd9da78a0ff14ac0248ec3a6c091fc01aa4f7b09b (patch)
treeea38c7e441331e1128e06f4528032fba2868fc74 /security/sguil-sensor
parent7a979a24acc86871fa956b1f78943f132dd6a3ae (diff)
downloadports-d9da78a0ff14ac0248ec3a6c091fc01aa4f7b09b.tar.gz
ports-d9da78a0ff14ac0248ec3a6c091fc01aa4f7b09b.zip
Notes
Diffstat (limited to 'security/sguil-sensor')
-rw-r--r--security/sguil-sensor/Makefile1
-rw-r--r--security/sguil-sensor/files/sensor_agent.sh.in17
2 files changed, 3 insertions, 15 deletions
diff --git a/security/sguil-sensor/Makefile b/security/sguil-sensor/Makefile
index 9643e2953548..2ef7ebfb891d 100644
--- a/security/sguil-sensor/Makefile
+++ b/security/sguil-sensor/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sguil-sensor
PORTVERSION= 0.6.1
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sguil
diff --git a/security/sguil-sensor/files/sensor_agent.sh.in b/security/sguil-sensor/files/sensor_agent.sh.in
index e87906716d25..cf3a66e3eb62 100644
--- a/security/sguil-sensor/files/sensor_agent.sh.in
+++ b/security/sguil-sensor/files/sensor_agent.sh.in
@@ -20,8 +20,8 @@ name="sensor_agent"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/%%SGUILDIR%%/sensor_agent.tcl"
procname="%%PREFIX%%/bin/tclsh8.4"
-check_process="${command} /bin/sh"
-stop_cmd="sensor_agent_stop"
+pidfile="/var/run/${name}.pid"
+check_pidfile="${pidfile} ${procname} /bin/sh"
[ -z "$sensor_agent_enable" ] && sensor_agent_enable="NO"
[ -z "$sensor_agent_conf" ] && sensor_agent_conf="%%PREFIX%%/etc/sensor_agent.conf"
@@ -29,18 +29,5 @@ stop_cmd="sensor_agent_stop"
[ -n "$sensor_agent_conf" ] && sensor_agent_flags="$sensor_agent_flags -c $sensor_agent_conf"
-sensor_agent_stop() {
- if [ -z "${rc_pid}" ]; then
- echo "${name} not running?"
- else
- echo "Stopping ${name}"
- kill ${sig_stop} ${rc_pid}
- wait_for_pids ${rc_pid}
- if [ -f "/var/run/${name}.pid" ]; then
- `rm -f /var/run/${name}.pid`
- fi
- fi
-}
-
load_rc_config $name
run_rc_command "$1"