I've some SysVinit scripts with start/stop, they are used for remote server deployment, as now i am using runit in other deployment purpose, and don't want to duplicate the scripts (maintenance reason). Is it possible that runit invokes these scripts? or other approach? Thank you in advance.
runit call script with start/stop
267 Views Asked by perigee At
1
There are 1 best solutions below
Related Questions in BASH
- When does Bash read heredocs?
- Why `set -o pipefail` gives different output even though the pipe is not failing
- Run an external command within jq to manipulate each values of a particular key
- API key 401 error in .env.development file
- How to "Enable mobile data" on a Huawei E3372 4G USB dongle using a bash script in Windows
- ImageMagick / Bash : pipe ignored(?) when filename format variable used
- MacOS Bash-Script: while read p and echo
- Parse command line arguments and write useful usage message without additional code
- JQ JSON - Values to Array
- why variable substitution is so different?
- postbank_pdf2csv: how to setup with Cygwin in Windows?
- Custom Bash functions & custom statements - Need some advice
- unexpected operator == in square brackets when trying to use gum lib
- How to disable a bash builtin inside a docker container
- Use sed or rename find series of alphabet then replace with with the same alphabet and a dash -
Related Questions in SH
- Bitbucket pipeline script failure
- what is the role of the backslash in this command why it is used and the dollar sign?
- Script shell execution failing escaping problem
- Shell script appending filenames more than once?
- How to ensure proper order of single command outputs in a Linux shell (dash, bash) script run by Textadept F5?
- How to write shell script on website login
- BASH - Read - How to require [enter] to complete input? Example [y] + [enter]
- Dinamic Table in Bash (Shell)
- Bash script that goes trough folder and uses dd
- How i can set swarm environment variables in the kafka-ui docker image
- Capturing first line from shell command output and continue processing rest
- Jenkinsfile. I want to use objects. How to run shell script from method of object?
- Convert a file of decimal numbers to the ASCII equivalent
- unable to set permission read and write to volumes directory in macos 10.15
- How i can embed my script into the image kafka-ui
Related Questions in RUNIT
- does ubuntu "runit" parse environment variable?
- runit startup script without pause
- start and enable docker for system using runit
- Why does "dbus: ...wpa_supplicant... getter failed" shows up on boot?
- Monolog vs workers vs supervisord
- Is Systemd compatible with Runit?
- How do I monitor and restart my application running in Docker based on memory usage?
- Runit in Docker container does not pass on environment variables
- Runit exits with error if process tells itself to go down
- Does runit support to delay to first start
- Rails5 - what is the best approach for writing unit tests for services?
- ctrl+c not killing a process
- Cannot start Subgit synchronisation automatically within Gitlab Docker Container via runit
- How can a runit' service restart return instantly?
- runit calls script instead of service command
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 # Hahtags
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?
It is unlikely that you can use these scripts unmodified with
runit. Runit expects the service started withrunto remain in the foreground and not exit.A SysVInit script expects the opposite behavior. Because it does not perform any process monitoring (and the lack of process monitoring is presumably why you are switching to
runit), SysVInit scripts expect services to run in the background, and will exit after starting the service.These are two fundamentally incompatible models.
You could consider using
systemdinstead ofrunit, which provides good process monitoring while also being able to follow processes that fork.