caddy/dist/init/linux-upstart/README.md
Leo Koppelkamm ddff08392a Make upstart script more fault tolerant and easier to debug (#824)
* Make Upstart script more fault tolerant and easier to debug

* update readme
2016-06-06 07:32:27 -06:00

583 B

Upstart conf for Caddy

Usage

Usage in this blogpost: Running Caddy Server as a service with Upstart.
Short recap:

  • Download Caddy in /usr/bin/caddy and execute sudo setcap cap_net_bind_service=+ep /usr/bin/caddy.
  • Save the upstart config file in /etc/init/caddy.conf.
  • Ensure that the folder /etc/caddy exists and that the subfolder .caddy is owned by www-data.
  • Create a Caddyfile in /etc/caddy/Caddyfile.
  • Now you can use sudo service caddy start|stop|restart.