~ubuntu-branches/ubuntu/saucy/lm-sensors-3/saucy

« back to all changes in this revision

Viewing changes to debian/lm-sensors.fancontrol.init

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2009-10-14 00:20:17 UTC
  • mfrom: (1.1.2 upstream) (0.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091014002017-36cfephnx9saq42i
Tags: 1:3.1.1-4
* Bumped Standards-version to 3.8.3 (no changes).
* Drop libsensors4 postinst script and the dependency on makedev | 
  udev. This part has been moved to i2c-tools.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
### BEGIN INIT INFO
4
4
# Provides:          fancontrol
5
 
# Required-Start:    $local_fs
6
 
# Required-Stop:     $local_fs
 
5
# Required-Start:    $remote_fs
 
6
# Required-Stop:     $remote_fs
7
7
# Default-Start:     2 3 4 5
8
8
# Default-Stop:      0 1 6
9
9
# Short-Description: fancontrol
38
38
  stop)
39
39
        log_daemon_msg "Stopping $DESC" "$NAME"
40
40
        start-stop-daemon --stop --quiet --pidfile $PIDFILE --oknodo --startas $DAEMON
 
41
        rm -f $PIDFILE
41
42
        log_end_msg $?
42
43
        ;;
43
44
  restart)
44
45
        $0 stop
45
 
        sleep 10
 
46
        sleep 3
46
47
        $0 start
47
48
        ;;
48
49
  force-reload)
50
51
                $0 restart
51
52
        fi
52
53
        ;;
 
54
  status)
 
55
        status_of_proc $DAEMON $NAME && exit 0 || exit $?
 
56
        ;;
53
57
  *)
54
 
        log_success_msg "Usage: /etc/init.d/fancontrol {start|stop|restart|force-reload}"
 
58
        log_success_msg "Usage: /etc/init.d/fancontrol {start|stop|restart|force-reload|status}"
55
59
        exit 1
56
60
        ;;
57
61
esac