#!/bin/sh ### BEGIN INIT INFO # Provides: thermald # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start the Intel power daemon # Description: Monitors and controls platform # temperatures. ### END INIT INFO set -e setvar THERMALD = ""/usr/sbin/thermald"" # Check for daemon presence test -x $THERMALD || exit 0 setvar OPTIONS = """" setvar MODULES = """" # Get lsb functions source /lib/lsb/init-functions match $1 { with start log_begin_msg "Starting thermald..." start-stop-daemon --start --quiet --oknodo --exec $THERMALD -- $OPTIONS log_end_msg $Status with stop log_begin_msg "Stopping thermald..." start-stop-daemon --stop --quiet --oknodo --retry 2 --exec $THERMALD log_end_msg $Status with restart $0 stop sleep 1 $0 start with reload|force-reload log_begin_msg "Reloading thermald..." start-stop-daemon --stop --signal 1 --exec $THERMALD log_end_msg $Status with * log_success_msg "Usage: /etc/init.d/thermald {start|stop|restart|reload|force-reload}" exit 1 }