mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
. correct init scripts, [1] [2]
. bump PORTREVISIONs. PR: 107894 [1], 107895 [2] Submitted by: Paul Schmehl <pauls at utdallas.edu> (maintainer) [1], [2]
This commit is contained in:
parent
7a979a24ac
commit
d9da78a0ff
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=182517
4 changed files with 6 additions and 30 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= sguil-sensor
|
||||
PORTVERSION= 0.6.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= sguil
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= sguil-server
|
||||
PORTVERSION= 0.6.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= sguil
|
||||
|
|
|
@ -19,26 +19,13 @@ rcvar=`set_rcvar`
|
|||
|
||||
command="%%PREFIX%%/bin/${name}"
|
||||
procname="%%TCLSH%%"
|
||||
check_process="${command} /bin/sh"
|
||||
stop_cmd="sguild_stop"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
check_pidfile="${pidfile} ${procname} /bin/sh"
|
||||
|
||||
sguild_enable=${sguild_enable-NO}
|
||||
sguild_conf=${sguild_conf-%%PREFIX%%/etc/%%SGUILDIR%%/sguild.conf}
|
||||
sguild_flags=${sguild_flags--D}
|
||||
[ -n "$sguild_conf" ] && sguild_flags="$sguild_flags -c $sguild_conf"
|
||||
|
||||
sguild_stop() {
|
||||
if [ -z "${rc_pid}" ]; then
|
||||
echo "${name} not running?"
|
||||
else
|
||||
echo "Stopping ${name}."
|
||||
`/bin/kill -9 ${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"
|
||||
|
|
Loading…
Add table
Reference in a new issue