caddy/dist/init/linux-sysvinit
Daniel van Dorp f3a3bf6204 dist/init/linux-sysvinit: improve legacy compatibility (#1002)
* 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.
2016-08-05 08:15:32 -06:00
..
caddy dist/init/linux-sysvinit: improve legacy compatibility (#1002) 2016-08-05 08:15:32 -06:00
README.md dist/init/linux-sysvinit: caddy for SysVinit 2016-08-01 20:51:22 +02:00

SysVinit conf for Caddy

Usage

  • Download the appropriate Caddy binary in /usr/local/bin/caddy or use curl https://getcaddy.com | bash.
  • Save the SysVinit config file in /etc/init.d/caddy.
  • Ensure that the folder /etc/caddy exists and that the subfolder ssl is owned by www-data.
  • Create a Caddyfile in /etc/caddy/Caddyfile
  • Now you can use sudo /etc/init.d/caddy start|stop|restart|reload|status.