Re: Auto Start Sybase script not working
- From: Benny Nielsen <spam@xxxxxxxxxxx>
- Date: Fri, 28 Sep 2007 18:11:22 +0200
asdf wrote:
Successfully installed Sybase ASE 15 on RH 4
I'm able to start it by running 'erverstart ./RUN_SYBASE'
However I'm unable to write a working script to start the
server upon each reboot.
I've found the following dicussion
http://www.webservertalk.com/archive87-2005-10-1250521.html
and tried implementing this for version 15.
Here is what my script looks like roughly:
---------------------------
#!/bin/bash
unset lang
cd /opt/sybase/ASE-15_0/install
su -c "./startserver -f ./RUN_SYBASE" root
su -c "./startserver -f ./RUN_SYBASE_BS" root
-----------------------------
When I'm logged in as root and execute the script it all works well
but during reboot 'var/log/messages' reports that script was executed
but the server isn't running when I do 'showserver'.
It looks like permissions error but I'm not sure how to troubleshoot it.
I've installed ASE as a root which I know isn't the best thing to do but
this is just a test environment.
Any idea on how to modify the script to have the server startup
automatically are much appreciated.
su root is likely to ask for passwd. When started from the /etc/rc.d/xx you
are root. So just use what is between " ".
.
- Follow-Ups:
- Re: Auto Start Sybase script not working
- From: asdf
- Re: Auto Start Sybase script not working
- References:
- Auto Start Sybase script not working
- From: asdf
- Auto Start Sybase script not working
- Prev by Date: Re: Xbuntu
- Next by Date: Re: Customer Relationship Management (CRM) software
- Previous by thread: Re: Auto Start Sybase script not working
- Next by thread: Re: Auto Start Sybase script not working
- Index(es):
Relevant Pages
|