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.
gentoo-overlay/net-analyzer/flow-tools/files/flowcapture.initd

24 lines
557 B

#!/sbin/runscript
# Copyright 1999-2015 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} \
-- ${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 $?
}