ports/107895: security/sguil-server, correct init script error
Paul Schmehl
pauls at utdallas.edu
Sun Jan 14 01:30:12 UTC 2007
>Number: 107895
>Category: ports
>Synopsis: security/sguil-server, correct init script error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sun Jan 14 01:30:11 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Paul Schmehl
>Release: FreeBSD 6.0-RELEASE-p15 amd64
>Organization:
The University of Texas at Dallas
>Environment:
System: FreeBSD hostname.utdallas.edu 6.0-RELEASE-p15 FreeBSD 6.0-RELEASE-p15 #2: Mon Oct 16 21:28:21 UTC 2006 root at hostname.utdallas.edu:/usr/obj/usr/src/sys/SMPKERNEL amd64
>Description:
security/sguil-server, correct a problem with the init script that
makes it impossible to start the process if the security/sguil-sensor
port is installed on the same server and has already been started. This
is not the recommended procedure, but there are people running it that way.
This patch corrects the problem so that both parts of sguil can run on
the same box.
>How-To-Repeat:
>Fix:
--- patch-sguild.sh.in begins here ---
--- sguild.sh.in.orig Sun Jan 14 00:21:55 2007
+++ sguild.sh.in Sun Jan 14 00:23:31 2007
@@ -19,26 +19,13 @@
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"
--- patch-sguild.sh.in ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list