summaryrefslogtreecommitdiff
blob: 4abcf43cee0c20dc47956eaecdcad0c0502de196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 $?
}