File: thinkfan.cmake

package info (click to toggle)
thinkfan 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 680 kB
  • sloc: cpp: 3,886; ansic: 492; sh: 119; xml: 23; makefile: 19
file content (19 lines) | stat: -rw-r--r-- 340 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run

command="@CMAKE_INSTALL_PREFIX@/sbin/thinkfan"
command_args="-q -s5 -c /etc/thinkfan.conf"
pidfile="@PID_FILE@"

extra_started_commands="reload"

required_files="/etc/thinkfan.conf"

depend() {
	after modules
}

reload() {
	ebegin "Reloading ${SVCNAME}"
	start-stop-daemon --signal HUP --pidfile "${pidfile}"
	eend $?
}