- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Init Script Problem
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
09-13-2004 09:52 PM
09-13-2004 09:52 PM
Init Script Problem
i have a little problem with one of my init scripts and can´t figure out what the problem should be (or im just standing on the line :)
Would be nie if someone could have look on that script.
When i try to start the script with
/sbin/init.d/phoenix-server start
nothing happens no error, it writes no Log File in the /tmp.
When i try to stop the script
/sbin/init.d/phoenix-server stop
it works pretty fine.
Would be pleased about some help
greetings & thanks
Pet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 10:05 PM
09-13-2004 10:05 PM
Re: Init Script Problem
at first a question:
Do you have any entry in /etc/rc.log?
Try a set -x as the first line in the script.
This will print all commands and the execution to stdout.
Regards
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 10:06 PM
09-13-2004 10:06 PM
Re: Init Script Problem
Having a look...
It seem to exit with 0 if you have nothing...
I would suggest to add some more test to see if it continues after:
'start')
if [ -f /etc/rc.config.d/phoenix-server ] ; then
echo OK!!!
sleep 3
. /etc/rc.config.d/phoenix-server
else
echo "ERROR: /etc/rc.config.d/phoenix-server defaults file MISSING"
sleep 3
exit 1
fi
if [ "$RUN_PHX_SERVER" -ne 1 ]; then
echo "Phoenix Server deactivated!!"
echo RUN_PHX_SERVER = " "$RUN_PHX_SERVER"!"
sleep 5
exit 0
etc...
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 10:10 PM
09-13-2004 10:10 PM
Re: Init Script Problem
Oh and I forgot..
You should initialize RUN_PHX_SERVER in order to understand whats going on
Let us know how you are getting on
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 10:44 PM
09-13-2004 10:44 PM
Re: Init Script Problem
set -x in the init script file.
is there any message's on /etc/rc.log file.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 10:56 PM
09-13-2004 10:56 PM
Re: Init Script Problem
All su commands should be of the form:
su phoenix -c
If as I suspect that 14240 is the correct value, your code should read something like...
cd $PHOENIX_SERVER_PATH
if [ -x PurchaseServer14240 ] ;
then /usr/bin/su phoenix -c ./PurchaseServer14240 > /tmp/Phoenix_PU.log 2>&1 &
echo "Phoenix Server Started"
else echo "Phoenix Servet NOT FOUND"
exit 1
fi
cd $PHOENIX_SERVER_PATH/../../spool/server
if [ -x SpoolServer14240 ] ;
then /usr/bin/su phoenix -c ./spool/server/SpoolServer14240 > /tmp/Phoenix_SP_S.log 2>&1 &
echo "SpoolServer started"
else echo "Spoolserver NOT FOUND"
exit 1
fi
if [ -x SpoolWorker14240 ] ;
then /usr/bin/su phoenix -c ./SpoolWorker14240 > /tmp/Phoenix_SP_W.log 2>&1 &
echo "SpoolWorker started"
else echo "SpoolWorker NOT FOUND"
exit 1
fi