aboutsummaryrefslogtreecommitdiffstats
path: root/testing/flowd/flowd.initd
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2017-04-11 17:12:36 +0300
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-04-13 08:26:10 +0000
commitd1215fa657e8301d27f48804cd39f81e6dbc835c (patch)
treed607ac47d6fc1da7991b1298dd66fee3a06d1442 /testing/flowd/flowd.initd
parent71e8e056ea8d6bb86daef9ea359ae6b640a93f40 (diff)
downloadaports-d1215fa657e8301d27f48804cd39f81e6dbc835c.tar.bz2
aports-d1215fa657e8301d27f48804cd39f81e6dbc835c.tar.xz
testing/flowd: new aport
https://code.google.com/p/flowd Small, fast and secure NetFlow collector
Diffstat (limited to 'testing/flowd/flowd.initd')
-rw-r--r--testing/flowd/flowd.initd27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/flowd/flowd.initd b/testing/flowd/flowd.initd
new file mode 100644
index 0000000000..fefaff9c2d
--- /dev/null
+++ b/testing/flowd/flowd.initd
@@ -0,0 +1,27 @@
+#!/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 $?
+}