Re: Auto Start Sybase script not working



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 " ".
.



Relevant Pages

  • RE: [PHP] mkdir permission errors
    ... you're running the above script as root. ... Then if you run the same script via the web server, ... and permissions. ... understanding of those if you're going to administer the server. ...
    (php.general)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script Runs perfectly fine from the command prompt. ... # This is the main Apache HTTP server configuration file. ... LoadModule actions_module modules/mod_actions.so ...
    (perl.beginners)
  • Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Regarding a selection for mobile code/scripting language
    ... Client Side scripting, so the server can send script commands to the client. ... I decided they should be scripted and mobile code. ...
    (Vuln-Dev)