Annotation of /trunk/initscripts/sysvinit/rc/localnet
Parent Directory | Revision Log
Revision 3 -
(hide annotations)
(download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 9 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/localnet
File size: 824 byte(s)
Mon Dec 13 22:52:07 2004 UTC (19 years, 9 months ago) by niro
Original Path: trunk/magellan-initscripts/etc/rc.d/init.d/localnet
File size: 824 byte(s)
This commit was generated by cvs2svn to compensate for changes in r2, which included commits to RCS files with non-trunk default branches.
1 | niro | 2 | #!/bin/bash |
2 | |||
3 | #%rlevels: 7:s 0:k 6:k | ||
4 | #%start: 80 | ||
5 | #%stop: 90 | ||
6 | |||
7 | #deps | ||
8 | #%needs: | ||
9 | #%before: | ||
10 | #%after: | ||
11 | |||
12 | source /etc/sysconfig/rc | ||
13 | source $rc_functions | ||
14 | #source /etc/sysconfig/network | ||
15 | source /etc/hostname | ||
16 | |||
17 | case "$1" in | ||
18 | start) | ||
19 | echo -e ${COLOREDSTAR}"Bringing up the loopback interface ..." | ||
20 | loadproc ifconfig lo 127.0.0.1 | ||
21 | |||
22 | echo -e ${COLOREDSTAR}"Setting hostname to $HOSTNAME ..." | ||
23 | loadproc hostname $HOSTNAME | ||
24 | |||
25 | update_svcstatus $1 | ||
26 | splash svc_started "$(basename $0)" 0 | ||
27 | ;; | ||
28 | |||
29 | stop) | ||
30 | echo -e ${COLOREDSTAR}"Bringing down the loopback interface ..." | ||
31 | loadproc ifconfig lo down | ||
32 | |||
33 | update_svcstatus $1 | ||
34 | splash svc_stopped "$(basename $0)" 0 | ||
35 | ;; | ||
36 | |||
37 | restart) | ||
38 | $0 stop | ||
39 | sleep 1 | ||
40 | $0 start | ||
41 | ;; | ||
42 | |||
43 | status) | ||
44 | echo "Hostname is: $(hostname)" | ||
45 | ifconfig lo | ||
46 | ;; | ||
47 | |||
48 | *) | ||
49 | echo "Usage: $0 {start|stop|restart|status}" | ||
50 | exit 1 | ||
51 | ;; | ||
52 | esac |
Properties
Name | Value |
---|---|
svn:executable | * |