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

Fixes to Jenkins slave init and class #153

Closed
wants to merge 2 commits into from

Conversation

lcrisci
Copy link

@lcrisci lcrisci commented Jul 24, 2014

No description provided.

@jenkinsadmin
Copy link

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@cfeskens
Copy link

cfeskens commented Aug 6, 2014

+1 to merge this. This would save my puppet runs from trying to restart my jenkins slaves every 30 minutes.

@mark0n
Copy link
Contributor

mark0n commented Aug 18, 2014

Can you make it . /lib/lsb/init-functions to be a bit more LSB compliant? See http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptfunc.html for details.

@cfeskens
Copy link

I tried using /lib/lsb/init-functions, and it doesn't work on RHEL systems. /lib/lsb/init-functions doesn't seem to include the status function used by slave_status(). In most cases, scripts listed in /lib/lsb/init-functions turn around and source /etc/init.d/functions.

Would you prefer using /etc/init.d/functions for it's 'status' command or modifying slave_status() in /etc/init.d/jenkins-slave to not call 'status -p'?

@lcrisci
Copy link
Author

lcrisci commented Aug 27, 2014

The existing scripts under /etc/init.d/ on a RHEL6 system ( the ones that we are using here ) are not using any functions sourced from /lib/lsb/init-functions.

This file is also missing a function such as "checkpid" which is being sourced from the regular /etc/rc.d/init.d/functions.

We would need to change the functions inside the init script itself and i don't see it as a necessity for now.Easier to source /etc/rc.d/init.d/functions like what is happening with the other scripts.

@rtyler
Copy link

rtyler commented Sep 24, 2014

I think with the merging of #171 we cover this case. Please reopen this if that's not the case

@rtyler rtyler closed this Sep 24, 2014
@rtyler rtyler added this to the 1.2.0: Nestor milestone Sep 24, 2014
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.

5 participants