source: bootscripts-standard/bootscripts/cblfs/init.d/lcdproc@ 88c8bf0

Last change on this file since 88c8bf0 was 609a9e7, checked in by William Harrington <kb0iic@…>, 11 years ago

Bring bootscripts up to date with 2.0-pre1

  • Property mode set to 100644
File size: 809 bytes
Line 
1#!/bin/bash
2# Begin $rc_base/init.d/lcdproc
3
4# Based on sysklogd script from LFS-3.1 and earlier.
5# ChangedBy: Steven Swann (sjs205) <swannonline@googlemail.com>
6# Date: Mon Dec 27 16:12:51 GMT 2010
7
8
9# Start or stop the lcdproc client based upon the first argument to the script.
10
11. /etc/sysconfig/rc
12. $rc_functions
13
14case $1 in
15 start)
16 boot_mesg "Starting lcdproc, the LCD client..."
17 loadproc /usr/bin/lcdproc
18 ;;
19
20 stop)
21 boot_mesg "Stopping lcdproc, the LCD client..."
22 killproc /usr/bin/lcdproc
23 ;;
24
25 reload)
26 boot_mesg "Reloading lcdproc, the LCD client..."
27 reloadproc /usr/bin/lcdproc
28 ;;
29
30 restart)
31 $0 stop
32 sleep 1
33 $0 start
34 ;;
35
36 status)
37 statusproc /usr/bin/lcdproc
38 ;;
39
40 *)
41 echo "Usage: $0 {start|stop|reload|restart|status}"
42 exit 1
43 ;;
44esac
45
46# End $rc_base/init.d/lcdproc
Note: See TracBrowser for help on using the repository browser.