File: thinkfan-sleep.service

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 (12 lines) | stat: -rw-r--r-- 268 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
[Unit]
Description=Notify thinkfan of imminent sleep
Before=sleep.target

[Service]
Type=oneshot
ExecStart=/usr/bin/pkill -x -pwr thinkfan
# Hack: Since the signal handler races with the sleep, we need to delay a bit
ExecStart=sleep 1

[Install]
WantedBy=sleep.target