Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 262521 Details for
Bug 174128
New ebuild: net-analyzer/daemonlogger
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
daemonlogger.rc.1
daemonlogger.rc.1 (text/plain), 1.38 KB, created by
Jason Wallace
on 2011-02-14 19:58:06 UTC
(
hide
)
Description:
daemonlogger.rc.1
Filename:
MIME Type:
Creator:
Jason Wallace
Created:
2011-02-14 19:58:06 UTC
Size:
1.38 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >depend() { > need net.${IFACE} > > if [[ ${DL_MODE} = "tap" ]] ; then > need net.${TAP_OFACE} > fi >} > >start() { > > if [ ! -d /var/run/daemonlogger ]; then > mkdir -p /var/run/daemonlogger > chown ${DL_USER}:${DL_GROUP} /var/run/daemonlogger > fi > > if [[ ${DL_MODE} = "log" ]]; then > LOG_OPTS="-l ${LOG_DIR} -M ${LOG_PCT} -r" > > if [[ -n $LOG_SIZE ]]; then > LOG_OPTS="${LOG_OPTS} -s ${LOG_SIZE}" > fi > > if [[ -n $LOG_TIME ]]; then > LOG_OPTS="${LOG_OPTS} -t ${LOG_TIME}" > fi > > ebegin "Starting daemonlogger in LOG mode" > start-stop-daemon --start --quiet --exec /usr/bin/daemonlogger \ > --pidfile /var/run/daemonlogger/daemonlogger.pid \ > -- ${LOG_OPTS} ${DL_OPTS} -P /var/run/daemonlogger -p daemonlogger.pid >/dev/null 2>&1 > eend $? > > elif [[ ${DL_MODE} = "tap" ]]; then > ebegin "Starting daemonlogger in TAP mode" > start-stop-daemon --start --quiet --exec /usr/bin/daemonlogger \ > --pidfile /var/run/daemonlogger/daemonlogger.pid \ > -- -o ${TAP_OFACE} ${DL_OPTS} -P /var/run/daemonlogger -p daemonlogger.pid >/dev/null 2>&1 > eend $? > else > eerror 'DL_MODE not set to "log" or "tap" in /etc/conf.d/daemonlogger!' > fi >} > >stop() { > ebegin "Stopping daemonlogger" > start-stop-daemon --stop --quiet --pidfile /var/run/daemonlogger/daemonlogger.pid > eend $? >} >
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 174128
:
115954
|
119472
|
242293
|
242297
|
242299
|
242301
|
262515
|
262517
|
262519
| 262521