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

/etc/init.d/rcK.clients brc command not found #32

Closed
cognhuepan opened this issue Nov 14, 2014 · 2 comments
Closed

/etc/init.d/rcK.clients brc command not found #32

cognhuepan opened this issue Nov 14, 2014 · 2 comments

Comments

@cognhuepan
Copy link

I've added the following line to the end of my /etc/init.d/rcK.clients:

brc debian service networking start

and when the system is shutting down I get this message:

[ -- ]Running clients shutdown script... /etc/init.d/rK.clients: line 10: brc: not found

I've tried with

brc debian /etc/init.d/networking start

and got the same results.

@paradigm
Copy link
Member

paradigm commented Dec 2, 2014

In the short term the fix is to just use the full path to brc, like so:

/bedrock/bin/brc debian /etc/init.d/networking start

or you could set the $PATH before hand:

export PATH=/bedrock/bin:/bedrock/sbin:$PATH
brc debian /etc/init.d/networking start

Note that you probably wanted either brc debian service networking stop or to place it in rcS.clients - starting networking in the shutdown script seems like a possible mistake.

As for a proper fix: rcK.clients does include a comment which says to do things exactly how you did them - that's definitely a bug. rcS.clients does not seem to have the same issue (which makes sense, as it is much more commonly used and would have had this caught by now had it existed there). I'll probably patch things to have rcK either mimic rcS's $PATH or build a $PATH from the user-configured /bedrock/etc/rc.conf.

@paradigm
Copy link
Member

Poki no longer has its own init system for which this would be valid.

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

No branches or pull requests

2 participants