source:
bootscripts/lfs/init.d/template@
5bc19fc
Last change on this file since 5bc19fc was 0cda898, checked in by , 13 years ago | |
---|---|
|
|
File size: 939 bytes |
Rev | Line | |
---|---|---|
[1c48007] | 1 | #!/bin/sh |
2 | ######################################################################## | |
[0cda898] | 3 | # Begin scriptname |
[1c48007] | 4 | # |
5 | # Description : | |
6 | # | |
7 | # Authors : | |
8 | # | |
[0cda898] | 9 | # Version : LFS x.x |
[1c48007] | 10 | # |
11 | # Notes : | |
12 | # | |
13 | ######################################################################## | |
14 | ||
[0cda898] | 15 | ### BEGIN INIT INFO |
16 | # Provides: template | |
17 | # Required-Start: | |
18 | # Should-Start: | |
19 | # Required-Stop: | |
20 | # Should-Stop: | |
21 | # Default-Start: | |
22 | # Default-Stop: | |
23 | # Short-Description: | |
24 | # Description: | |
25 | # X-LFS-Provided-By: | |
26 | ### END INIT INFO | |
27 | ||
28 | . /lib/boot/functions | |
[1c48007] | 29 | |
30 | case "${1}" in | |
[0cda898] | 31 | start) |
32 | boot_mesg "Starting..." | |
33 | loadproc | |
34 | ;; | |
35 | ||
36 | stop) | |
37 | boot_mesg "Stopping..." | |
38 | killproc | |
39 | ;; | |
40 | ||
41 | reload) | |
42 | boot_mesg "Reloading..." | |
43 | reloadproc | |
44 | ;; | |
45 | ||
46 | restart) | |
47 | ${0} stop | |
48 | sleep 1 | |
49 | ${0} start | |
50 | ;; | |
51 | ||
52 | status) | |
53 | statusproc | |
54 | ;; | |
55 | ||
56 | *) | |
57 | echo "Usage: ${0} {start|stop|reload|restart|status}" | |
58 | exit 1 | |
59 | ;; | |
[1c48007] | 60 | esac |
61 | ||
[0cda898] | 62 | # End scriptname |
Note:
See TracBrowser
for help on using the repository browser.