11 |
|
|
12 |
source /etc/sysconfig/rc |
source /etc/sysconfig/rc |
13 |
source $rc_functions |
source $rc_functions |
14 |
#source /etc/sysconfig/network |
|
15 |
source /etc/hostname |
#get hostname |
16 |
|
HOSTNAME="$(< /etc/hostname)" |
17 |
|
|
18 |
case "$1" in |
case "$1" in |
19 |
start) |
start) |
20 |
echo -e ${COLOREDSTAR}"Bringing up the loopback interface ..." |
echo -e ${COLOREDSTAR}"Bringing up the loopback interface ..." |
21 |
loadproc ifconfig lo 127.0.0.1 |
loadproc ifconfig lo 127.0.0.1 |
22 |
|
|
23 |
echo -e ${COLOREDSTAR}"Setting hostname to $HOSTNAME ..." |
echo -e ${COLOREDSTAR}"Setting hostname to ${HOSTNAME} ..." |
24 |
loadproc hostname $HOSTNAME |
loadproc hostname ${HOSTNAME} |
25 |
|
|
26 |
update_svcstatus $1 |
update_svcstatus $1 |
27 |
splash svc_started "$(basename $0)" 0 |
splash svc_started "$(basename $0)" 0 |