-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add pidfile support #3235
Comments
What do you need a pid file for? |
e.g for easy monit integration:
|
@otbutz I can think of two different ways you could do this with Monit instead of a pid file.
See https://mmonit.com/monit/documentation/monit.html#Service-checks While it's definitely possible to add a pidfile option, I'm not convinced it's really necessary here. There are alternate approaches to check if Caddy is alive that fit better with the model Caddy is aiming for. |
While i agree that there are plenty of alternatives for monit, this was just an example. If it's simple to add the option it would be nice to keep it, as it was it also provided by caddy v1. |
This feature is also what I want. |
@otbutz @JACK-THINK Implemented in 4df56c7. |
Thanks for adding the However, this can only be specified at command line, which is not so easy to do without modifying the systemd unit file, which is not practical when the unit file gets overridden on package updates. Can you add |
@francislavoie, By letting |
@windware-ono Can you please open a new issue? What you're asking for is something different than this issue is, and this issue was closed about 2 years ago. |
caddy2 seems to lack support for creating a pid file. At least i couldn't find anything in the documentation and both
caddy help start
/caddy help run
didn't list anything related to it.The text was updated successfully, but these errors were encountered: