rc-status -s does not show Custom init script, cannot start at boot #613
Unanswered
ParaVirtual
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a simple, working openrc init script designed as per the documentation, it works when invoked via rc-service [start|stop|status], starts and stops as expected, reporting correct status.
I have tried to add it to start at the default runlevel using "rc-update add myservicename default" which acknowledges the action and reports success. It also allows removal, and gives a useful "already exists" message if I try to add it again, and errors if I mistype the service name.
However at system startup, nothing happens. It does not try to start, does not crash, it's just not being called.
"rc-status -s" does not show it as an available service at all, it's not active, crashes, unused, or anwhere. rcstatus -r confirms the current runlevel is default, as expected.
What am I missing? How do I register this custom service with openrc to make it start when the system boots?
Beta Was this translation helpful? Give feedback.
All reactions