Last change
on this file since 56f753d was 2167cfe, checked in by William Harrington <kb0iic@…>, 10 years ago |
bootscripts are the scripts used for the sysvinit book.
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | # Begin $rc_base/init.d/lisa
|
---|
3 |
|
---|
4 | # Based on sysklogd script from LFS-3.1 and earlier.
|
---|
5 | # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
|
---|
6 |
|
---|
7 | #$LastChangedBy: bdubbs $
|
---|
8 | #$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
|
---|
9 |
|
---|
10 | . /etc/sysconfig/rc
|
---|
11 | . $rc_functions
|
---|
12 |
|
---|
13 | export PATH=$PATH:/opt/kde/bin
|
---|
14 |
|
---|
15 | case "$1" in
|
---|
16 | start)
|
---|
17 | boot_mesg "Starting LISA Daemon..."
|
---|
18 | loadproc /opt/kde/bin/lisa
|
---|
19 | ;;
|
---|
20 |
|
---|
21 | stop)
|
---|
22 | boot_mesg "Stopping LISA Daemon..."
|
---|
23 | killproc /opt/kde/bin/lisa
|
---|
24 | ;;
|
---|
25 |
|
---|
26 | reload)
|
---|
27 | boot_mesg "Reloading LISA Daemon..."
|
---|
28 | reloadproc /opt/kde/bin/lisa
|
---|
29 | ;;
|
---|
30 |
|
---|
31 | restart)
|
---|
32 | $0 stop
|
---|
33 | sleep 1
|
---|
34 | $0 start
|
---|
35 | ;;
|
---|
36 |
|
---|
37 | status)
|
---|
38 | statusproc /opt/kde/bin/lisa
|
---|
39 | ;;
|
---|
40 |
|
---|
41 | *)
|
---|
42 | echo "Usage: $0 {start|stop|reload|restart|status}"
|
---|
43 | exit 1
|
---|
44 | ;;
|
---|
45 | esac
|
---|
46 |
|
---|
47 | # End $rc_base/init.d/lisa
|
---|
Note:
See
TracBrowser
for help on using the repository browser.