You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/sbin/runscript
|
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
use net
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
|
|
|
ebegin "Starting flow-capture"
|
|
|
|
checkpath -d -o flows /run/flows
|
|
|
|
start-stop-daemon --start --user ${USER} --exec /usr/bin/flow-capture \
|
|
|
|
--pidfile /run/flows/flowcapture.pid.${PORT} \
|
|
|
|
-- -D ${FLOW_OPTS} >/dev/null 2>&1
|
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ebegin "Stopping flow-capture"
|
|
|
|
start-stop-daemon --stop --quiet --exec /usr/bin/flow-capture \
|
|
|
|
--pidfile /run/flows/flowcapture.pid.${PORT}
|
|
|
|
eend $?
|
|
|
|
}
|