Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call rc.local and rcS.local with start / stop arguments #465

Closed
SturmUDrang opened this issue May 29, 2019 · 2 comments
Closed

call rc.local and rcS.local with start / stop arguments #465

SturmUDrang opened this issue May 29, 2019 · 2 comments
Assignees

Comments

@SturmUDrang
Copy link

Hi!

for safely stopping custom services it would be nice if it worked like other startup scripts.

REF: #169

@mpvader
Copy link
Contributor

mpvader commented May 29, 2019

Hi, you wrote:

for safely stopping custom services it would be nice if it worked like other
startup scripts.
REF: #169

I'm sorry, but I don't know what you mean. As far as I can see; it all works fine. Otherwise, perhaps put in a version of the code that you like better; and explain why. So send in a patch.

An idea on how the existing functionality can be used: make the early started one of the rc scripts on /data to install daemontools services on boot. So that is just like gui, vrmlogger, vedriect-interface and the rest.

And then you can control them with svc -d, svc -u etcetera.

Best regards, Matthijs

@SturmUDrang
Copy link
Author

Hi!

I would just pass on the start or stop parameter to rc.local for convenience:
#!/bin/sh if test -x /data/rc.local; then /data/rc.local $1 fi exit 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants