Skip to content

Accept RC_DEBUG setting from a service script#369

Open
lego12239 wants to merge 1 commit intoOpenRC:masterfrom
lego12239:master
Open

Accept RC_DEBUG setting from a service script#369
lego12239 wants to merge 1 commit intoOpenRC:masterfrom
lego12239:master

Conversation

@lego12239
Copy link
Copy Markdown

Sometimes it's need to debug a certain service script on a system startup.
With old-style sysvinit scripts we just add -x to the first line of our
service script. openrc-run doesn't allow us to do this, but we still can
place "set -x" somewhere at the beginning of our script.

This patch allow us to use RC_DEBUG instead of "set -x" for debug
purposes.

Sometimes it's need to debug a certain service script on a system startup.
With old-style sysvinit scripts we just add -x to the first line of our
service script. openrc-run doesn't allow us to do this, but we still can
place "set -x" somewhere at the beginning of our script.

This patch allow us to use RC_DEBUG instead of "set -x" for debug
purposes.
@lego12239
Copy link
Copy Markdown
Author

lego12239 commented May 14, 2020

I don't know is that really need. We can just use "set -x" inside a service script. But if need - there is the patch :-).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant