2016-10-17 15:04:26 -05:00
|
|
|
description "Caddy HTTP/2 web server"
|
|
|
|
|
|
|
|
start on runlevel [2345]
|
|
|
|
stop on runlevel [016]
|
|
|
|
|
|
|
|
console log
|
|
|
|
|
|
|
|
setuid www-data
|
|
|
|
setgid www-data
|
|
|
|
|
|
|
|
respawn
|
|
|
|
respawn limit 10 5
|
|
|
|
|
|
|
|
# 12.04 upstart version does not support reload
|
|
|
|
#reload signal SIGUSR1
|
|
|
|
|
|
|
|
# Let's Encrypt certificates will be written to this directory.
|
2017-03-28 15:56:18 -05:00
|
|
|
env CADDYPATH=/etc/ssl/caddy
|
2016-10-17 15:04:26 -05:00
|
|
|
|
|
|
|
limit nofile 1048576 1048576
|
|
|
|
|
|
|
|
script
|
2017-03-28 15:56:18 -05:00
|
|
|
cd /etc/ssl/caddy
|
2016-10-17 15:04:26 -05:00
|
|
|
rootdir="$(mktemp -d -t "caddy-run.XXXXXX")"
|
|
|
|
exec /usr/local/bin/caddy -agree -log=stdout -conf=/etc/caddy/Caddyfile -root=$rootdir
|
|
|
|
end script
|