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?
499 views Asked by SSB At
1
There are 1 answers
Related Questions in REDHAT
- Choosing OpenShift Over DIY Kubernetes on Bare Metal: Benefits and Storage Management
- Is it possible to mount a logical volume without wiping the data?
- How to setup security on elasticsearch based on redhat image in openshift
- How to use the host IP as the connection to an external server in a docker container?
- looking for help on package for REHL UBI 8/9: saxon
- libxml2 and libxslt development packages issue in Redhat Linux
- Get Apache to create files as the web site owner
- Differences in behavior of kill(pid, SIGINT) between Debian and Red Hat based distros
- cannot contain "Catalina sh not working in java devel"
- Puppet Unknown variable: 'osfamily' on Rocky 9
- Cannot extend jboss-eap-7 container
- How to auto confirm question with parted tool using Ansible in Linux
- dockerfile - add a package to ubi minimal base image from private repository
- I want to access a password stored in a elytron credential store using system properties in jboss eap 7.4 version
- connection issues when MLFLow is hosted on remote server
Related Questions in INIT
- List > numpy.ndarray using np.array(list) not working in class __init__ . Problem with numpy?
- Illegal instruction (core dumped) while runing # rasa init cmd and unable to genrate a model or train it
- How to relative import a package create by me using python and strucure it better?
- Python calling function defined in __init__.py not working
- Getting imports right using grpc
- Parameter in subclass without init-block is null although parameter was non-null
- Circular import issue on multiple python files
- mutiple inheritance: use __init__ method of two superclasses
- Python: load resources without using __init__.py files
- how to use setter/getters during init()?
- Fastapi with tortoise-orm models early init models still not found
- AttributeError: module 'pinecone' has no attribute 'init'
- can't find self.connection.report documentation for comet_ml
- Accidentally Modified tkinter Module: How to Restore Original State?
- first time installing sanity and having a error which shows as following
Related Questions in RC
- SAS SYSMSG() inside a SYMPUT/SYMPUTX inside a data _null_
- Raspberry Pi: Keyboard input for bash script without connected HDMI display
- How to avoid LEDs Fluickring?
- my servo tries to go past its limit and wont stop until i unplug it, and force it into some normal posotion
- rc local on raspberry pi4 unable to run the script while bootup
- Is there a way to use rc-Files for VisualStudioCode?
- MFC, my resource file *.rc corrupted after any change I do
- Lmfit issue, the best fit curve is orders of magnitude away from the trial curve
- How to embed .xml file in .rc file?
- RC script to Lua table
- How do you change the icon that appears in the windows taskbar when running a c++ executable in VSCode
- Can I get a upright theta (θ) in pyplot by using the rc library's latex function?
- zshrc only works right in Ubuntu but not in Arch
- How to a assign a new value to an Rc in Rust
- Parsing resource Visual Studio .rc file with the sed command
Related Questions in UMOUNT
- Unmount OverlaysFS directory with multiple lower directory
- In Linux, how to do quick remove of USB device, like Windows, without file system impact or corruption?
- Unmounting and Mounting fileshare in azure
- cryptsetup and umount fail with "target is busy." error
- Not able to unmount a Nas folder, target busy
- 'df' hangs after a connection to a mounted smb (cifs) storage was lost
- How to umount a busy windows file using Ubuntu in WSL?
- umount of davfs2 mounted directory causes segfault on Fedora 31 (davfs2-1.5.5-1.fc31.x86_64)
- s3fs unmount: directory is not empty
- Bash umount command substitution
- why to remount filesystem to read-only before unmounting in umountfs script?
- bash - Unmounting all partitions on user-selected drive
- What is the use of cap_set_proc() if the program needs to be run as root
- Invalid argument error while using umount() function
- How can i mount and unmount linux filesystems using ctypes, mount and umount
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?
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)
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.