- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rc.log warning
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2005 07:49 AM
08-06-2005 07:49 AM
[sample #1]
Setting hostname
Output from "/sbin/rc1.d/S320hostname start":
----------------------------
/sbin/rc1.d/S320hostname[36]: Start: not found.
[sample #2]
Start Internet services daemon
Output from "/sbin/rc2.d/S500inetd start":
----------------------------
/sbin/rc2.d/S500inetd[37]: Start: not found.
Internet Services started
Thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2005 08:35 AM
08-06-2005 08:35 AM
Re: rc.log warning
If you can paste here the source of the script, we'll see the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2005 08:41 AM
08-06-2005 08:41 AM
Re: rc.log warning
[/sbin/rc1.d/S320hostname]
#!/sbin/sh
#
# @(#) $Revision: 72.10 $
#
# NOTE: This script is not configurable! Any changes made to this
# scipt will be overwritten when you upgrade to the next
# release of HP-UX.
#
# WARNING: Changing this script in any way may lead to a system that
# is unbootable. Do not modify this script.
#
#
# Set hostname
#
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
rval=0
set_return() {
x=$?
if [ $x -ne 0 ]; then
echo "EXIT CODE: $x"
rval=1
fi
}
case $1 in
start_msg)
echo "Setting hostname"
;;
start)
if [ -f /etc/rc.config ] ; then
. /etc/rc.config
else
echo "ERROR: /etc/rc.config defaults file MISSING"
fi
hostname $HOSTNAME
set_return
if [ -z "$NODENAME" ] ; then
uname -S ${HOSTNAME%%.*}
else
uname -S $NODENAME
fi
set_return
setuname -s $OPERATING_SYSTEM -t
set_return
;;
*)
echo "usage: $0 {start}"
;;
esac
exit $rval
[/sbin/rc2.d/S500inetd]
#!/sbin/sh
#
# @(#) inetd $Revision: 1.4.214.2 $ $Date: 96/10/08 13:24:29 $
#
# Copyright (C) 1993, 1994 Hewlett-Packard Company
#
# NOTE: This script is not configurable! Any changes made to this
# script will be overwritten when you upgrade to the next
# release of HP-UX.
#
unset UNIX95
PRE_U95=true;export PRE_U95;
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
rval=0
set_return() {
x=$?
if [ $x -ne 0 ]; then
echo "EXIT CODE: $x"
rval=1 # always 1 so that 2 can be used for other reasons
fi
}
case "$1" in
start_msg)
echo "Start Internet services daemon"
;;
stop_msg)
echo "Stopping Internet services daemon"
;;
'start')
if [ -f /etc/rc.config ]; then
. /etc/rc.config
else
echo "ERROR: /etc/rc.config defaults file MISSING"
fi
mask=`umask`
umask 000
[ -x /usr/sbin/inetd ] && /usr/sbin/inetd $INETD_ARGS
set_return
if [ $rval -eq 0 ]; then
echo "Internet Services started"
else
echo "Unable to start Internet Services"
fi
umask $mask
;;
'stop')
if [ -f /etc/rc.config ]; then
. /etc/rc.config
else
echo "ERROR: /etc/rc.config defaults file MISSING"
fi
/usr/sbin/inetd -k
set_return
if [ $rval -eq 0 ]; then
echo "Internet Services stopped"
else
echo "Unable to stop Internet Services"
fi
;;
*)
echo "usage: $0 {start|stop}"
rval=1
;;
esac
exit $rval
##############################
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2005 08:53 AM
08-06-2005 08:53 AM
Re: rc.log warning
sh -x /sbin/rc1.d/S320hostname start
And you'll see what line gives you the error ...
Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2005 12:02 PM
08-06-2005 12:02 PM
Solutionll -t /sbin/init.d
ll -t /etc/rc.config.d
You cannot store any test files or temp files in these directories, particularly in /etc/rc.config.d.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2005 12:08 PM
08-06-2005 12:08 PM
Re: rc.log warning
/sbin/rc2.d/S500inetd[37]: Start: not found.
If you look at line 37 of the inetd script, you'll see where it sources (reads) a script called /etc/rc.config, which in turn runs all the scripts in the /etc/rc.config.d/ directory. Look for "Start" in that directory.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2005 01:57 PM
08-06-2005 01:57 PM
Re: rc.log warning
Can post the output of the command as suggested above as well.
#sh -x /sbin/rc1.d/S320hostname start
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2005 06:04 PM
08-07-2005 06:04 PM
Re: rc.log warning
The syntax must be either of
add_list "$name start" "$descrip"
or
add_list "$name stop" "$descrip"
The "start" and "stop" keywords must be completely lower-case.
Regards,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2005 09:42 PM
08-07-2005 09:42 PM
Re: rc.log warning
/sbin/rc2.d/S500inetd[37]: Start: not found.
Its contains . /etc/rc.config in above files.
Its seems there is a duplicate file/ non hpux configuration file exists in this /etc/rc.config.d directory. Please move the file to different directory.