2016-06-06 08:32:27 -05:00
|
|
|
description "Caddy HTTP/2 web server"
|
2016-03-31 07:36:44 -05:00
|
|
|
|
|
|
|
start on runlevel [2345]
|
|
|
|
stop on runlevel [016]
|
|
|
|
|
2016-06-06 08:32:27 -05:00
|
|
|
console log
|
2016-03-31 07:36:44 -05:00
|
|
|
|
|
|
|
setuid www-data
|
|
|
|
setgid www-data
|
|
|
|
|
|
|
|
respawn
|
|
|
|
respawn limit 10 5
|
|
|
|
|
2016-07-29 15:56:25 -05:00
|
|
|
reload signal SIGUSR1
|
|
|
|
|
2016-06-06 08:32:27 -05:00
|
|
|
# Let's Encrypt certificates will be written to this directory.
|
2016-12-04 06:52:34 -05:00
|
|
|
env CADDYPATH=/etc/caddy
|
2016-06-06 08:32:27 -05:00
|
|
|
|
|
|
|
limit nofile 1048576 1048576
|
2016-03-31 07:36:44 -05:00
|
|
|
|
|
|
|
script
|
2016-06-06 08:32:27 -05:00
|
|
|
cd /etc/caddy
|
|
|
|
rootdir="$(mktemp -d -t "caddy-run.XXXXXX")"
|
2016-07-05 12:39:04 -05:00
|
|
|
exec /usr/local/bin/caddy -agree -log=stdout -conf=/etc/caddy/Caddyfile -root=$rootdir
|
2016-06-06 08:32:27 -05:00
|
|
|
end script
|