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

Shell function rc_exit and rc_status not available on RHEL/CentOS #26

Open
aleibl opened this issue Nov 17, 2014 · 0 comments
Open

Shell function rc_exit and rc_status not available on RHEL/CentOS #26

aleibl opened this issue Nov 17, 2014 · 0 comments
Labels

Comments

@aleibl
Copy link
Contributor

aleibl commented Nov 17, 2014

/etc/init.d/keynanny uses shell funtions rc_exit and rc_status which are not available on RHEL/CentOS 6.5.

On an OpenSUSE 13.1 installation these commands come from this file that is sourced in /lib/lsb/init-functions:
8<----------

Source SuSE's rc functions

. /etc/rc.status
-----------<8
which contains rc_exit and rc_status (and other functions). It seems to indicate that these are not platform independent.

In fact, the LSB definition does not mention them either (http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptfunc.html).

Update: start-stop-daemon is also not available on RHEL/CentOS. Workaround: use daemon() function in /etc/init.d/functions.

@aleibl aleibl added the bug label Nov 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant