-
Notifications
You must be signed in to change notification settings - Fork 443
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 SystemV init script template for debian packaging #697
Conversation
For processes that manage their own pid file, they should define the `PIDFILE` variable (sourced either through `/etc/default/…` or `/etc/sysconfig/…`). Otherwise, if undefined, this script will capture the pid and write it to `/var/run/${{app_name}}/running.pid`. This commit is related to sbt@45bc5db that implements the same logic for rpm packaging
One note about stopping daemon. We probably shouldn't remove |
@kardapoltsev good point. |
We need |
@yanns code looks good to me. Things I would like to see before merging this:
Thanks for making the SystemV script more robust :) |
@kardapoltsev I now understood what you mean. You're right. I'll change that. |
@muuki88 the play section and the server configuration already contain the needed information. OK for the msg. I'll add that. |
@yanns yes, it's added to the docs, but it states that this is for |
@muuki88 yes you're right, I oversaw that in the play doc. |
I tested writing the msg and I am not sure we should do it: $ /etc/init.d/my-app start
* Starting my-app
using PID file '/var/run/myapp/play.pid' managed by application
[ OK ] It breaks the output. |
ewy. Okay, we leave it as is. |
@kardapoltsev @muuki88 please review the new version that contain changes according to your feedbacks. |
LGTM |
LGTM too except that @muuki88 mentioned log message about pid file management.
|
@kardapoltsev please have a look at the previous discussions. |
Excuse me, I've missed it. Thanks for your contributions! |
fix SystemV init script template for debian packaging
cool thanks! |
For processes that manage their own pid file, they should define the
PIDFILE
variable (sourced either through/etc/default/…
or/etc/sysconfig/…
). Otherwise, if undefined, this script will capture the pid and write it to/var/run/${{app_name}}/running.pid
.This commit is related to 45bc5db that implements the same logic for rpm packaging