Re: Auto Start Sybase script not working
- From: "asdf" <asdf@xxxxxxxx>
- Date: Fri, 28 Sep 2007 23:09:15 -0400
"Benny Nielsen" <spam@xxxxxxxxxxx> wrote in message
news:46fd27aa$0$2105$edfadb0f@xxxxxxxxxxxxxxxxxxxxxxx
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 " ".
I did try the following as well
#!/bin/bash
unset lang
cd /opt/sybase/ASE-15_0/install
../startserver -f ./RUN_SYBASE
../startserver -f ./RUN_SYBASE_BS
that didn't work
.
- References:
- Auto Start Sybase script not working
- From: asdf
- Re: Auto Start Sybase script not working
- From: Benny Nielsen
- Auto Start Sybase script not working
- Prev by Date: Re: A new reader? Welcome to alt.os.linux, read this first if you're new here (FAQ)
- Next by Date: Re: Xbuntu
- Previous by thread: Re: Auto Start Sybase script not working
- Index(es):
Relevant Pages
|