mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-07 11:28:48 +03:00
f3a3bf6204
* dist/init/linux-sysvinit: pass --oknodo for --start as well * dist/init/linux-sysvinit: manually rm PIDFILE Since start-stop-daemon --remove-pidfile is new and not present everywhere. |
||
---|---|---|
.. | ||
caddy | ||
README.md |
SysVinit conf for Caddy
Usage
- Download the appropriate Caddy binary in
/usr/local/bin/caddy
or usecurl https://getcaddy.com | bash
. - Save the SysVinit config file in
/etc/init.d/caddy
. - Ensure that the folder
/etc/caddy
exists and that the subfolderssl
is owned bywww-data
. - Create a Caddyfile in
/etc/caddy/Caddyfile
- Now you can use
sudo /etc/init.d/caddy start|stop|restart|reload|status
.