Sponsored Content
Operating Systems Linux Question Regarding mounting a drive and running a software Post 302895773 by ramky79 on Wednesday 2nd of April 2014 10:39:48 AM
Old 04-02-2014
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

Code:
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
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

mounting a drive

Trying to mount a drive which has been dropped after corruption. What is the quickets and esiest command to run and which switches? cheers olly (1 Reply)
Discussion started by: ollyparkhouse
1 Replies

2. UNIX for Dummies Questions & Answers

Drive mounting

Hello, people. I am pretty new to linux, but I heard it was supposed to be good. So I installed it on an ancient 33mhz 486 with 27mbs of RAM. Ran into problems, patched them, and am here now. I am trying to figure out how to use my floppy and CD-ROM drives. I click their respective icons on the... (2 Replies)
Discussion started by: Furtoes00
2 Replies

3. Filesystems, Disks and Memory

Mounting AFS drive

I have an old amiga IDE drive that I wish to read. Its formated in FFS and I understand I can mount this under linux as an AFS filesystem. The drive is already installed in the PC. Can anyone explain in newbie terms the steps t mounting and reading this drive? Thanks (1 Reply)
Discussion started by: SocketSlave
1 Replies

4. Solaris

Mounting XP Drive in Solaris 10

Hi All, I'm a relative rookie when it comes to the world of Unix and Windows networking, and hoping you can help me out! My predicament: I have a Windows machine running VMWare with an instance of Solaris 10. I have a Windows XP Pro "server" with a large hard drive that I need Solaris to... (7 Replies)
Discussion started by: spiffy05
7 Replies

5. SCO

mounting USB floppy drive /Flash drive in OSR 6.0

Can anybody help me out to mount USB flash /floppy drive in sco openserver 6.0 . (5 Replies)
Discussion started by: sureshdrajan
5 Replies

6. Linux

CD drive Mounting

Can any one suggest me how to mount the cd drive from unix? I have installed Ubuntu8.0 on my laptop. Your response is appreciated. (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

7. Solaris

mounting usb drive

hi, first of all, i would really like to know how to find out where my usb is in the system. if i "cd to /dev/usb i have a hub0 to hub4 and hid0 -- hid5 .. how do i know where my usb is? and i guess once i find out which one my usb is at, i can do something like "mount /dev/usb/xxx /tmp" ... (5 Replies)
Discussion started by: k2k
5 Replies

8. Solaris

mounting 2nd hard drive

Sun 280R, Solaris 5.8.... I have inserted a 2nd hard drive on my system. 'format' recognized the disk, but I cannot figure out how to access the disk. Any help is appreciated! (3 Replies)
Discussion started by: jalburger
3 Replies

9. SCO

Mounting Tape Drive

Sorry I posted it in wrong forum first. OK, I'm new to Unix (but an IT since DOS 6.2 era) Long story short I'm trying to help a friend who has failing Unix system which is perhaps 16 years old with SCO Openserver 3.4v4.2 with DDS90 Tape where they backup their data. I've setup a Dell Precision... (9 Replies)
Discussion started by: shunail
9 Replies
AUTOFS(8)						      System Manager's Manual							 AUTOFS(8)

NAME
/etc/rc.d/init.d/autofs - Control Script for automounter SYNOPSIS
/etc/rc.d/init.d/autofs start|stop|restart|reload|status DESCRIPTION
autofs controls the operation of the automount(8) daemons running on the Linux system. Usually autofs is invoked at system boot time with the start parameter and at shutdown time with the stop parameter. The autofs script can also be manually invoked by the system administra- tor to shut down, restart or reload the automounters. OPERATION
autofs will consult a configuration file /etc/auto.master (see auto.master(5)) by default to find mount points on the system. For each of those mount points automount(8) will mount and start a thread, with the appropriate parameters, to manage the mount point. /etc/rc.d/init.d/autofs reload will check the current auto.master map against running daemons. It will kill those daemons whose entries have changed and then start daemons for new or changed entries. If a map is modified then the change will become effective immediately. If the auto.master map is modified then the autofs script must be rerun to activate the changes. /etc/rc.d/init.d/autofs status will display the status of, automount(8) ,running or not. SEE ALSO
automount(8), autofs(5), auto.master(5). autofs_ldap_auth.conf(5) AUTHOR
This manual page was written by Christoph Lameter <chris@waterf.org>, for the Debi GNU/Linux system. Edited by H. Peter Anvin <hpa@trans- meta.com>. 9 Sep 1997 AUTOFS(8)
All times are GMT -4. The time now is 04:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy