~benklop/+junk/lcdproc

« back to all changes in this revision

Viewing changes to scripts/debian/lcdproc.init

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Yoder (Launchpad)
  • Date: 2009-10-11 18:21:07 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20091011182107-twnkyhv1f63lzq3o
Tags: 0.5.3-0ubuntu1
* New upstream version 0.5.3 (LP: #432669)
* Merge source patches from 0.5.2-3 
  - LCDd.conf: Change driver path
  - clients/lcdproc/machine_Linux.c: Change ifdef
* Add clients/examples/lcdident.pl to debian files 
* Updated debian/rules:
  - Cleaned up whitespace
  - Changed config.guess/config.sub lines 
* Added a delay to server/drivers/imonlcd.c for slower models
* Added dependency on autotools-dev to fix launchpad build issue 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
 
3
 
#### BEGIN INIT INFO
4
 
# Provides:          lcdproc
5
 
# Required-Start:    $syslog $local_fs $network $remote_fs
6
 
# Required-Stop:     $syslog $local_fs $network $remote_fs
7
 
# Default-Start:     2 3 4 5
8
 
# Default-Stop:      S 0 1 6
9
 
# Short-Description: LCDproc system status information viewer
10
 
# Description:       Debian init script for lcdproc, the system
11
 
#                    status information viewer in the LCDproc suite
12
 
### END INIT INFO
13
 
 
14
 
 
15
 
# local variables
16
 
PATH=/sbin:/bin:/usr/sbin:/usr/bin
17
 
NAME=lcdproc
18
 
DAEMON=/usr/bin/$NAME
19
 
DESC="LCDproc system status monitor"
20
 
DEFAULTS=/etc/default/$NAME
21
 
START=yes
22
 
 
23
 
# Source defaults file; edit that file to configure this script.
24
 
if [ -e "${DEFAULTS}" ]; then
25
 
    . "${DEFAULTS}"
26
 
fi
27
 
 
28
 
# If we're not to start the daemon, simply exit
29
 
if [ "${START}" != "yes" ]; then
30
 
    exit 0
31
 
fi
32
 
 
33
 
# installation check
34
 
test -x $DAEMON || exit 5
35
 
 
36
 
# load LSB 3.x init functions
37
 
. /lib/lsb/init-functions
38
 
 
39
 
 
40
 
case "$1" in
41
 
    start)
42
 
        log_daemon_msg "Starting $DESC" "$NAME"
43
 
        start_daemon $DAEMON $OPTIONS
44
 
        log_end_msg $?
45
 
        ;;
46
 
    stop)
47
 
        log_daemon_msg "Stopping $DESC" "$NAME"
48
 
        killproc $DAEMON
49
 
        log_end_msg $?
50
 
        ;;
51
 
    restart|reload|force-reload)
52
 
        $0 stop
53
 
        sleep 1
54
 
        $0 start
55
 
        ;;
56
 
  *)
57
 
        echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
58
 
        exit 2
59
 
        ;;
60
 
esac
61
 
 
62
 
exit 0