2008-05-03 17:03:02 +00:00
|
|
|
# rcS - runlevel compatibility
|
|
|
|
#
|
|
|
|
# This task runs the old sysv-rc startup scripts.
|
|
|
|
|
|
|
|
start on stopped udevstart
|
|
|
|
|
|
|
|
#stop on runlevel
|
|
|
|
|
|
|
|
# Note: there can be no previous runlevel here, if we have one it's bad
|
|
|
|
# information (we enter rc1 not rcS for maintenance). Run /etc/init.d/rc
|
|
|
|
# without information so that it defaults to previous=N runlevel=S.
|
|
|
|
console output
|
|
|
|
script
|
2010-01-28 13:58:15 +00:00
|
|
|
source /etc/event.d/functions
|
2008-05-03 17:03:02 +00:00
|
|
|
if [ -f /etc/sysconfig/nodename ]; then
|
|
|
|
/bin/hostname `cat /etc/sysconfig/nodename`
|
2010-01-28 13:58:15 +00:00
|
|
|
status_message "Hostname set to $HOSTNAME"
|
2008-05-03 17:03:02 +00:00
|
|
|
else
|
|
|
|
/bin/hostname "localhost"
|
2010-01-28 13:58:15 +00:00
|
|
|
status_message "Hostname set to $HOSTNAME"
|
2008-05-03 17:03:02 +00:00
|
|
|
fi
|
|
|
|
end script
|