mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-29 09:42:49 -04:00
* dist/init/linux-sysvinit: use kill -0 to test process status * dist/init/linux-sysvinit: use service (as root) instead of /etc/init.d/
SysVinit conf for Caddy
Usage
- Download the appropriate Caddy binary in
/usr/local/bin/caddyor usecurl https://getcaddy.com | bash. - Save the SysVinit config file in
/etc/init.d/caddy. - Ensure that the folder
/etc/caddyexists and that the subfoldersslis owned bywww-data. - Create a Caddyfile in
/etc/caddy/Caddyfile - Now you can use
service caddy start|stop|restart|reload|statusasroot.