aports/testing/flowd/flowd.initd
Valery Kartel d1215fa657 testing/flowd: new aport
https://code.google.com/p/flowd
Small, fast and secure NetFlow collector
2017-04-13 08:26:10 +00:00

28 lines
555 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/sbin/openrc-run
description="NetFlow Сollector"
command=/usr/sbin/flowd
command_args="-g"
command_background=yes
pidfile=/run/flowd.pid
required_files=/etc/flowd/flowd.conf
extra_started_commands="reload reopen"
description_reload="Reload configuration"
description_reopen="Reopen log files"
depend() {
need localmount net
}
reload() {
ebegin "Reloading $RC_SVCNAME"
start-stop-daemon --signal HUP --pidfile $pidfile
eend $?
}
reopen() {
ebegin "Reopening $RC_SVCNAME log files"
start-stop-daemon --signal USR1 --pidfile $pidfile
eend $?
}