]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/initscripts/init.d/lcdproc
OpenVPN converter: Fix coding style and verbose output.
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / lcdproc
CommitLineData
4ae88fc9
MT
1#!/bin/sh
2########################################################################
3# Begin $rc_base/init.d/lcdproc
4#
5# Description :
6#
7# Authors :
8#
9# Version : 00.00
10#
11# Notes :
12#
13########################################################################
14
15. /etc/sysconfig/rc
16. ${rc_functions}
17
18CLIENT="lcdproc"
19
20CONFIG_FILE="/etc/sysconfig/lcdproc"
21
22# Read the configuration file if any.
23[ -e "${CONFIG_FILE}" ] && . ${CONFIG_FILE}
24
25case "${1}" in
26 start)
27 boot_mesg "Starting LCDd..."
28 loadproc /usr/sbin/LCDd -c /etc/lcdproc/LCDd.conf 2>/dev/null
29
30 case "${CLIENT}" in
31 lcdproc)
32 boot_mesg "Starting lcdproc..."
33 loadproc /usr/bin/lcdproc -c /etc/lcdproc/lcdproc.conf 2>/dev/null
34 ;;
35 vc)
36 boot_mesg "Starting LCD virtual console..."
37 loadproc /usr/bin/lcdvc -c /etc/lcdproc/lcdvc.conf 2>/dev/null
38 ;;
39 esac
40 ;;
41
42 stop)
43 boot_mesg "Stopping LCDd..."
44 killproc /usr/sbin/LCDd
45
46 boot_mesg "Stopping lcdproc..."
47 killproc /usr/bin/lcdproc
48
49 boot_mesg "Stopping LCD virtual console..."
50 killproc /usr/bin/lcdvc
51 ;;
52
53 restart)
54 ${0} stop
55 sleep 1
56 ${0} start
57 ;;
58
59 status)
60 statusproc /usr/sbin/LCDd
61 statusproc /usr/bin/lcdproc
62 statusproc /usr/bin/lcdvc
63 ;;
64
65 *)
66 echo "Usage: ${0} {start|stop|restart|status}"
67 exit 1
68 ;;
69esac
70
71# End $rc_base/init.d/lcdproc