- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rc scripts not starting while server reboots
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
Discussions
Discussions
Forums
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
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
тАО03-02-2011 04:52 AM
тАО03-02-2011 04:52 AM
rc scripts not starting while server reboots
iam facing an issue in my 11.11 box.
There is a script in my "/sbin/rc3.d/S97sysload
script is "S97sysload" which is not getting started while server reboots.
But am able to start manually with out any issue.
rc.log says as:
root@d850vp01:.../rc3.d # cat /etc/rc.log |grep -i sysload
usage: /sbin/init.d/sysload {start|stop}
Output from "/sbin/rc3.d/S97sysload start":
Starting Sysload sldrmd...
/local/home/sysload/coll/conf/sldrmd[9]: dirname: not found.
/local/home/sysload/coll/conf/sldrmd[35]: sed: not found.
/local/home/sysload/coll/conf/sldrmd[39]: /coll/pgm/sldrm_coll: not found.
/sbin/rc3.d/S97sysload[11]: sleep: not found.
Starting Sysload sldfsd...
/local/home/sysload/coll/conf/sldfsd[9]: dirname: not found.
/local/home/sysload/coll/conf/sldfsd[34]: sed: not found.
/local/home/sysload/coll/conf/sldfsd[43]: /coll/pgm/sldfs_rreq: not found.
root@d850vp01:.../rc3.d # uname -a
HP-UX d850vp01 B.11.11 U 9000/785 3942931648 unlimited-user license
see the starting of the script as manual:
root@d850vp01:.../rc3.d # S97sysload start
Starting Sysload sldrmd...
23282
==> Agent Sysload-Unix v5.20 (Build 55) start on Wed Mar 2 13:47:08 2011
Starting Sysload sldfsd...
root@d850vp01:.../rc3.d #
23289
==> Sysload File Server v5.20 (Build 17) start on Wed Mar 2 13:47:18 2011
root@d850vp01:.../rc3.d #
root@d850vp01:.../rc3.d # ps -ef | grep -i sysload
root 23300 5010 0 13:47:35 pts/8 0:00 grep -i sysload
root 23289 1 0 13:47:18 pts/8 0:00 /local/home/sysload/coll/pgm/sldfs_rreq start
root 23282 1 0 13:47:08 pts/8 0:00 /local/home/sysload/coll/pgm/sldrm_coll start
root 23284 23282 0 13:47:08 pts/8 0:00 sldrm_hist S35HP116 /local/home/sysload/coll/sldrmd.log 0 16300
root@d850vp01:.../rc3.d #
pls see the contents of script:
root@d850vp01:.../rc3.d # more S97sysload
#!/bin/sh
#Sysload startup script
#
SYSLOAD_CONF=/local/home/sysload/coll/conf
case ${1} in
'start')
if [ -x ${SYSLOAD_CONF}/sldrmd ]; then
echo "Starting Sysload sldrmd..."
${SYSLOAD_CONF}/sldrmd start
fi
sleep 10
if [ -x ${SYSLOAD_CONF}/sldfsd ]; then
echo "Starting Sysload sldfsd..."
${SYSLOAD_CONF}/sldfsd start
fi
;;
'stop')
if [ -x ${SYSLOAD_CONF}/sldfsd ]; then
echo "shutting down sldfsd Sysload ..."
${SYSLOAD_CONF}/sldfsd stop
fi
sleep 5
if [ -x ${SYSLOAD_CONF}/sldrmd ]; then
echo "shutting down sldrmd Sysload ..."
${SYSLOAD_CONF}/sldrmd stop
fi
sleep 10
;;
*)
echo "usage: /sbin/init.d/sysload {start|stop}"
;;
esac
S97sysload: END
Seems it bit confusing me to analyse and to get a work around to solve the issue.
Thanks in advance for your help.
Rgds
Sree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 05:02 AM
тАО03-02-2011 05:02 AM
Re: rc scripts not starting while server reboots
Please remember use full path for commands not found. Or set a global PATH variable to search/execute these commands.
For quick localization of a command: (i.e: dirname):
#whence dirname
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 05:08 AM
тАО03-02-2011 05:08 AM
Re: rc scripts not starting while server reboots
Iam not sure about setting the global variable for this issue.
will it be declared in /etc/profile?
in this case how can I solve the issue?
Thanks for help.
My scripting knowledge is poor :-(
Rgds
Sree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 05:19 AM
тАО03-02-2011 05:19 AM
Re: rc scripts not starting while server reboots
/etc/profile at booting time by rc process, Are you sure that PATH is loaded?
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 05:42 AM
тАО03-02-2011 05:42 AM
Re: rc scripts not starting while server reboots
Try set this in your script just for testing purposes:
PATH=`cat /etc/PATH`
Rgds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 08:32 AM
тАО03-02-2011 08:32 AM
Re: rc scripts not starting while server reboots
Thanks for your help.
The PATH variable is already setted in /etc/profile.
as you told do I need to put path info at starting of the script?
#!/bin/sh
#Sysload startup script
#
PATH=`cat /etc/PATH` ====> ???
SYSLOAD_CONF=/local/home/sysload/coll/conf
case ${1} in
'start')
pls correct me If am wrong.
many thanks
Sree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 08:48 AM
тАО03-02-2011 08:48 AM
Re: rc scripts not starting while server reboots
Yes, set it there. Also remember export it.
Since when this happens?
Do you verified the existence of each of the executables (not found) by the command "whence"?
Rgds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 10:30 AM
тАО03-02-2011 10:30 AM
Re: rc scripts not starting while server reboots
The issue is there till starting..after loading the sysload by other people.
The thing is if we run the script manualy its running with out any issue.
The same is not happening via server reboot !
mean via rc3.d.
this is what confusing!
many thnx for help.
rgds
Sree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 10:58 AM
тАО03-02-2011 10:58 AM
Re: rc scripts not starting while server reboots
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2011 11:12 AM
тАО03-02-2011 11:12 AM
Re: rc scripts not starting while server reboots
Have you noticed that errors comes from /local/home/sysload/coll/conf/sldrmd file?
local/home/sysload/coll/conf/sldrmd[9]: dirname: not found.
/local/home/sysload/coll/conf/sldrmd[35]: sed: not found.
/local/home/sysload/coll/conf/sldrmd[39]: /coll/pgm/sldrm_coll: not found
Just one of them comes from /sbin/rc3.d/S97sysload file:
/sbin/rc3.d/S97sysload[11]: sleep: not found.
Rgds.