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

Fix debian systemV init script status command #552 #562

Merged
merged 1 commit into from
Apr 26, 2015

Conversation

kardapoltsev
Copy link
Member

No description provided.

@muuki88 muuki88 added the debian label Apr 26, 2015
;;
esac
exit $?
status_of_proc -p "$PIDFILE" "$RUN_CMD" ${{app_name}} && exit 0 || exit $?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. status_of_proc is available for all debian systems?

@kardapoltsev
Copy link
Member Author

It's sourced from /lib/lsb/init-functions.

@muuki88
Copy link
Contributor

muuki88 commented Apr 26, 2015

Yep, but since when? E.g. like 12.04 LTS or earlier/later?

@kardapoltsev
Copy link
Member Author

From https://wiki.ubuntu.com/InitScriptStatusActions:

DustinKirkland worked with Debian to provide a method, status_of_proc() , in /lib/lsb/init-functions, in the lsb-base library package. This function is fully integrated in Intrepid as of lsb-3.2-14.

Oldest available lsb package at https://launchpad.net/ubuntu/+source/lsb is 4.0

@muuki88
Copy link
Contributor

muuki88 commented Apr 26, 2015

Ah nice. This should be enough xD

muuki88 added a commit that referenced this pull request Apr 26, 2015
Fix debian systemV init script status command #552
@muuki88 muuki88 merged commit 3c135ba into sbt:master Apr 26, 2015
@kardapoltsev kardapoltsev deleted the wip/status_exit_code branch April 26, 2015 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants