FreeBSD Bugzilla – Attachment 63772 Details for
Bug 95018
new port: security/sguil-sensor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
sensor_agent.sh.in
sensor_agent.sh.in (text/plain), 1.41 KB, created by
pauls
on 2006-03-28 03:20:19 UTC
(
hide
)
Description:
sensor_agent.sh.in
Filename:
MIME Type:
Creator:
pauls
Created:
2006-03-28 03:20:19 UTC
Size:
1.41 KB
patch
obsolete
>#!/bin/sh ># > ># PROVIDE: sensor_agent ># REQUIRE: DAEMON ># KEYWORD: FreeBSD shutdown > ># Add the following lines to /etc/rc.conf to enable sensor_agent: ># sensor_agent_enable (bool): Set to YES to enable sensor_agent ># Default: NO ># sensor_agent_flags (str): Extra flags passed to sensor_agent ># Default: -D ># sensor_agent_conf (str): Sensor_agent configuration file ># Default: %%PREFIX%%/etc/sensor_agent.conf ># > >. %%RC_SUBR%% > >name="sensor_agent" >rcvar=`set_rcvar` >command="%%PREFIX%%/bin/%%SGUILDIR%%/sensor_agent.tcl" >pidfile="/var/run/${name}.pid" >status_cmd="sensor_status" >stop_cmd="sensor_stop" >procname="%%PREFIX%%/bin/tclsh8.4" > >load_rc_config $name > >[ -z "$sensor_agent_enable" ] && sensor_agent_enable="NO" >[ -z "$sensor_agent_conf" ] && sensor_agent_conf="%%PREFIX%%/etc/sensor_agent.conf" >[ -z "$sensor_agent_flags" ] && sensor_agent_flags="-D" > >[ -n "$sensor_agent_conf" ] && sensor_agent_flags="$sensor_agent_flags -c $sensor_agent_conf" > >sensor_status() { > pid=$(check_process ${procname}) > if [ ${pid} ]; then > echo "${name} is running as pid ${pid}." > else > echo "${name} is not running." > rm -f ${pidfile} > fi > } > >sensor_stop() { > pid=$(check_process ${procname}) > if [ $pid ]; then > echo "Stopping ${name}." > kill -${sig_stop:-TERM} ${pid} > wait_for_pids ${pid} > rm -f ${pidfile} > else > echo "${name} not running?" > fi > } > >run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 95018
:
63768
|
63769
|
63770
|
63771
| 63772 |
63773
|
63774
|
63775
|
63776