Hi

The original sapdb script uses /etc/rc.config and checks for the variable START_SAPDB. However, the file /etc/rc.config is specific to SuSE Linux. If you call the script directly the variable gets set to YES by the script. See below:

if [ -f /etc/rc.config ]; then
        . /etc/rc.config
fi

# Determine the base and follow a runlevel link name.
base=${0##*/}
link=${base#*[SK][0-9][0-9]}

# Force execution if not called by a runlevel directory.
test $link = $base && START_SAPDB=yes
test "$START_SAPDB" = yes || exit 0
You should either create a file /etc/rc.config with the line
START_SAPDB=YES
or replace the lines above in the script by the RedHat specific config.

Arne

Victor Batista wrote:
Hi!
	I changed the script according to your instructions, and it is
working. I have also inserted dbmcli commands to start/stop the
databases.
	Although I still have a problem. When I execute the script
directly (/etc/rc.d/init.d/sapdb74), it works correctly. When I execute
the script form a link (/etc/rc3.d/S45Sapdb74 ) nothing happens. Does
any one knows  what am I missing? The permissions and User/Group of the
Sap files are the same as for other services.

	Thanks in advance,
		Victor Batista
--
Institute of Shipping Economics and Logistics    http://www.isl.org/
Arne Gehlhaar                                mailto:[EMAIL PROTECTED]
Universitaetsallee GW1 Block A                phone:+49.421.22096.49
D-28359 Bremen, Germany                         fax:+49.421.22096.55

_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to