Files
2026-09-22 09:38:26 +08:00

36 lines
417 B
Bash
Executable File

#!/bin/sh
DESC="thermald"
set -e
do_start() {
/usr/bin/thermald &
}
do_stop() {
start-stop-daemon --stop --name thermald --quiet
}
case "$1" in
start)
echo "Starting $DESC"
do_start
;;
stop)
echo "Stopping $DESC"
do_stop
;;
restart|force-reload)
echo "Restarting $DESC"
do_stop
sleep 1
do_start
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0