caddy/dist/init/linux-sysvinit
Tim Lewis fea8f37f9d Fix linux-sysvinit script to prevent missing caddy.log
Create /var/log/caddy.log and chown prior to starting caddy.
Caddy running as DAEMONUSER does not have permission to create the /var/log/caddy.log.
2017-09-18 19:16:15 -04:00
..
caddy Fix linux-sysvinit script to prevent missing caddy.log 2017-09-18 19:16:15 -04:00
README.md Make CADDYPATH equal across init scripts 2017-03-28 22:04:19 +01: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 folder /etc/ssl/caddy is owned by www-data.
  • Create a Caddyfile in /etc/caddy/Caddyfile
  • Now you can use service caddy start|stop|restart|reload|status as root.