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:
783 bytes
|
Rev | Line | |
---|
[609a9e7] | 1 | #!/bin/bash
|
---|
| 2 | # Begin $rc_base/init.d/LCDd
|
---|
| 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 LCDd server based upon the first argument to the script.
|
---|
| 10 |
|
---|
| 11 | . /etc/sysconfig/rc
|
---|
| 12 | . $rc_functions
|
---|
| 13 |
|
---|
| 14 | case $1 in
|
---|
| 15 | start)
|
---|
| 16 | boot_mesg "Starting LCDd, the LCD server..."
|
---|
| 17 | loadproc /usr/sbin/LCDd
|
---|
| 18 | ;;
|
---|
| 19 |
|
---|
| 20 | stop)
|
---|
| 21 | boot_mesg "Stopping LCDd, the LCD server..."
|
---|
| 22 | killproc /usr/sbin/LCDd
|
---|
| 23 | ;;
|
---|
| 24 |
|
---|
| 25 | reload)
|
---|
| 26 | boot_mesg "Reloading LCDd, the LCD server..."
|
---|
| 27 | reloadproc /usr/sbin/LCDd
|
---|
| 28 | ;;
|
---|
| 29 |
|
---|
| 30 | restart)
|
---|
| 31 | $0 stop
|
---|
| 32 | sleep 1
|
---|
| 33 | $0 start
|
---|
| 34 | ;;
|
---|
| 35 |
|
---|
| 36 | status)
|
---|
| 37 | statusproc /usr/sbin/LCDd
|
---|
| 38 | ;;
|
---|
| 39 |
|
---|
| 40 | *)
|
---|
| 41 | echo "Usage: $0 {start|stop|reload|restart|status}"
|
---|
| 42 | exit 1
|
---|
| 43 | ;;
|
---|
| 44 | esac
|
---|
| 45 |
|
---|
| 46 | # End $rc_base/init.d/LCDd
|
---|
Note:
See
TracBrowser
for help on using the repository browser.