Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 31329 Details for
Bug 50926
new ebuild for flow-tools-0.67
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
net-analyzer/flow-tools/files/0.67/flow-tools.rc -- rc-script
flow-tools.rc (text/plain), 2.06 KB, created by
Molchanov Alexander
on 2004-05-13 06:05:42 UTC
(
hide
)
Description:
net-analyzer/flow-tools/files/0.67/flow-tools.rc -- rc-script
Filename:
MIME Type:
Creator:
Molchanov Alexander
Created:
2004-05-13 06:05:42 UTC
Size:
2.06 KB
patch
obsolete
>#!/sbin/runscript ># config files: /etc/conf.d/flow-tools.xxx ># /etc/conf.d/flow-tools > >opts="start stop reload" > > >depend() { > use logger > need net >} > >envconfig() { > if [ ! -e /etc/conf.d/${myservice} ] > then > eerror "Can't find '/etc/conf.d/${myservice}' !!!" > return 1 > fi > > CAPTURE_NAME=${myservice##*.} > FC_CONFFILE=/etc/conf.d/flow-tools > > if [ ! -e ${FC_CONFFILE} ] > then > eerror "Can't find '${FC_CONFFILE}' !!!" > return 1 > fi > > . ${FC_CONFFILE} > > PID_FILE=${FC_PID_FILE}.${CAPTURE_PORT} > > if [ ! -d ${FC_DATA_DIR}/${CAPTURE_NAME} ] > then > einfo "Not found '${FC_DATA_DIR}/${CAPTURE_NAME}'. Create it..." > mkdir -p ${FC_DATA_DIR}/${CAPTURE_NAME} > chown ${FC_USER}:${FC_GROUP} ${FC_DATA_DIR}/${CAPTURE_NAME} > chmod 0750 ${FC_DATA_DIR}/${CAPTURE_NAME} > fi >} > >start() { > envconfig || return 1 > > ebegin "Starting flow-capture '${CAPTURE_NAME}'" > start-stop-daemon --start --pidfile ${PID_FILE} \ > --chuid ${FC_USER}:${FC_GROUP} --exec ${FC_BIN} \ > -- ${FC_OPTIONS} -n${CAPTURE_PERDAY_ROTATE} \ > -p${FC_PID_FILE} \ > -w${FC_DATA_DIR}/${CAPTURE_NAME} \ > ${FC_LOCAL_IP}/${CAPTURE_IP}/${CAPTURE_PORT} > eend $? >} > >stop() { > envconfig || return 1 > > ebegin "Stopping flow-capture '${CAPTURE_NAME}'" > start-stop-daemon --stop --pidfile ${PID_FILE} \ > --chuid ${FC_USER}:${FC_GROUP} > eend $? >} > >svc_status() { > status >} > >status() { > envconfig || return 1 > > if service_started "${myservice}" > then > einfo "status: '${CAPTURE_NAME}' started" > if [ -f ${PID_FILE} ] > then > pf=`cat ${PID_FILE}` > if ps -p ${pf} >/dev/null 2>&1 > then > for ipid in `pidof ${FC_BIN}` > do > if [ "${pf}" == "${ipid}" ] > then > einfo ":: ${FC_BIN} ( ${pf} ) [${PID_FILE}]" > return 0 > fi > done > eerror "proccess with pid '${pf}' not ${FC_BIN}" > ps -p ${pf} > else > eerror "proccess with pid '${pf}' not found" > fi > else > eerror "cann't find pid file: ${PID_FILE}" > fi > else > eerror "status: '${CAPTURE_NAME}' stopped" > fi >} > >reload() { > envconfig || return 1 > > ebegin "Rotate flow-capture db '${CAPTURE_NAME}'" > kill -HUP `cat ${PID_FILE}` > result=$? > eend $result >} >
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 50926
:
31327
|
31328
| 31329 |
31330
|
31331
|
31749
|
46594
|
46595