summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/collectl/files/collectl.initd-2')
-rwxr-xr-xsys-apps/collectl/files/collectl.initd-216
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-apps/collectl/files/collectl.initd-2 b/sys-apps/collectl/files/collectl.initd-2
new file mode 100755
index 000000000000..4abcf43cee0c
--- /dev/null
+++ b/sys-apps/collectl/files/collectl.initd-2
@@ -0,0 +1,16 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+extra_started_commands="flush"
+
+pidfile="/var/run/collectl.pid"
+command="/usr/bin/collectl"
+command_args="-D"
+
+flush() {
+ einfo "Flushing collectl buffers"
+ start-stop-daemon --signal USR1 --pidfile ${pidfile}
+ eend $?
+}