Question Regarding mounting a drive and running a software

Hello;

Whenever I reboot a system which one takes precedence; mounting the drives or running the init.d scripts

Here is my situation:
Every time I boot my system, I need to mount a RAID10 drive and run a software whose config files are on the RAID10 drive

I want the software to only start after checking if the mount has been mounted successfully

I have the following code in my init script

if mount | grep $mountpoint >/dev/null ; then
echo " starting the software"
# instructions to start the software
else
echo " Unable to start the software"
fi

My question?
Do i really have to use this if condition in my init script; What is the actual precedence of mounting drives and kicking off init scripts?
BTW, I have the mount point registered in /etc/fstab.

Thank you,
R

Disk mounting is given priority unless a partition in /etc/fstab is specifically marked as something to not mount, via the 'noauto' option. If a partition can't mount, that's considered a sufficient reason to stop the boot process.

It is, however, perfectly fine -- even reccomended -- to check that key files are in the correct places inside an init script. It doesn't need to be elaborate.

if [ ! -f /path/to/configfile ]
then
        echo "configfile missing" >&2
        exit 1
fi