summaryrefslogtreecommitdiff
blob: 73643a27a686f15ec4071b8d4bbca5cbbf3bf6f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/runscript

depend() {
	need dbus
	after logger
}

start() {
	ebegin "Starting thermald"

	start-stop-daemon --start --quiet --name thermald --exec /usr/sbin/thermald -- --dbus-enable
	eend $?
}

stop() {
	ebegin "Stopping thermald"
	/usr/bin/dbus-send --system --dest=org.freedesktop.thermald /org/freedesktop/thermald org.freedesktop.thermald.Terminate
	eend $?
}