summaryrefslogtreecommitdiff
path: root/sys-apps/collectl/files/collectl.initd-2
blob: b5ff5cedaae869db7c7980881f2566c38d90d48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

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 $?
}