I have a samba mount located within /opt. I have a script in init.d called sysinit that is linked to in rc6.d. This gets called on a reboot (the first thing, I set it to K01sysinit) and it is supposed to unmount the /opt directory. However, on reboot I see that it is failing from the commands in the rc.sysinit file. When I manually run my sysinit script and then reboot, everything works fine. Am I running into some sort of race condition here where the rc.sysinit umount command is getting run before the other script is done unmounting /opt, or is something else going on? Or do I not understand how run levels work? I thought that what happened on a reboot is that the stuff from rc6.d is run first and then the unmounting from rc.sysinit occurs.
How to get rid of "Device busy" during reboot, redhat 5.1 without modifying rc.sysinit?
497 Views Asked by SSB At
1
There are 1 best solutions below
Related Questions in REDHAT
- Mono installation on RedHat 5.11 (Tikanga)
- Premature end of script on VPS
- RPM spec files with rpmbuild can have errors
- No ruby-devel in RHEL7?
- 403 Forbidden and 13 Permission Denied
- gatling stress testing on AWS, threads staying in active
- QGIS 2.4 compilation error on Redhat 6.2
- Hadoop 2.6.0 Namenode stuck in safemode and won't leave it
- Maria DB (mysql) installation on Red Hat . How do I start service after installation
- nginx passenger - issues setting environment to staging
- Would it be a RedHat permission issue for a executable jar to get an SSLHandshakeException between servers?
- RedHat4/Docker on Centos 7. Can't reach internet from Docker Instance
- Exit perl script automatically every 2 hours
- How to install WebSphere MQ resource adapter (wmq.jmsra.rar) in JBoss 6.2 EAP?
- VI editor - saving filename in :wq
Related Questions in INIT
- Swift 2.0 : infer closure type error
- Init.rc : service killed and restarts
- Android init.rc: unable to Create Symbolic Links
- How to pull init configuration and updated code in IOS application from backend server?
- Int vs Int.type Error
- initramfs init has generated signal 11 but has no handler for it
- __init__() missing 1 required positional argument , but i think i put it?
- Is it acceptable to call initialization methods inside a static class to avoid using an autoloader?
- __init__.py code called twice and its significance with package import
- Understanding init() when sub-classing in Swift
- Constructors: Usage of super vs. class.__init__()?
- how to install initctl on a centos-7 box
- How to properly start/stop CouchDB 2.0 on Ubuntu
- "can't find label" error in Y86 compiler
- python strange super declaration : multiple self
Related Questions in RC
- How can I make a transfer function for an RC circuit in python
- How to highlight rulerformat
- Vim: last word on user specific settings?
- vi/vim - custom formatting depending on presence of special file or tag inside code
- Read RC File pyspark 2.0.0 from S3 with partitions
- Why isn't chdir happening for this rc.d script?
- rc.common not working OS X
- How to detect when networking initialized in /etc/init.d script?
- Difference between plugins and presets in .babelrc
- Git branch in the prompt
- Ubuntu 10.10 rc.local ignores half the command?
- update-rc.d vs chkconfig
- How do you mark specific text on file load with your vimrc?
- ~/.ssh/rc Auto Login to seperate shell
- Adding symlink to scripts into rc<number>.d folders to start process during system startup
Related Questions in UMOUNT
- How to unmount a busy device
- trigger alert when a specified command executes in linux
- Not able to unmount a Nas folder, target busy
- bash - Unmounting all partitions on user-selected drive
- How to umount an USB Android device
- What is the use of cap_set_proc() if the program needs to be run as root
- Invalid argument error while using umount() function
- In Linux, how to do quick remove of USB device, like Windows, without file system impact or corruption?
- How to get rid of "Device busy" during reboot, redhat 5.1 without modifying rc.sysinit?
- fuse action on umount
- How can i mount and unmount linux filesystems using ctypes, mount and umount
- why to remount filesystem to read-only before unmounting in umountfs script?
- Freenas gave wrong mount command to /mnt freenas filesystem
- deal with an improperly unmounted disk
- Linux: Which process is causing "device busy" when doing umount?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The solution I found was that I needed to create a lock file in /var/lock/subsys so that the rc.sysinit file knew that the service I created was "running". Without that, it would never create the KXXsysinit symlinks necessary so that my script would be run with a "stop" command on shutdown or reboot.