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

Restart command exits with a failure #7

Open
willgarcia opened this issue Jul 7, 2015 · 0 comments
Open

Restart command exits with a failure #7

willgarcia opened this issue Jul 7, 2015 · 0 comments

Comments

@willgarcia
Copy link

When tomcat is already stopped, the "restart" command exits with a failure instead of skipping the fail and starting tomcat.

$ /etc/init.d/tomcat status
tomcat is stopped
$ /etc/init.d/tomcat restart
Stopping tomcat:                                           [FAILED]

The initd script misses a "status" function in order to check if tomcat needs indeed to be stopped or not. As of now, the error is due to an exit instruction found and called in the function "stop_server" during the restart process (https://github.com/ecivis/tomcat-rpm/blob/master/tomcat.init.sh#L76)

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

1 participant