mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-29 20:24:11 +08:00
ddff08392a
* Make Upstart script more fault tolerant and easier to debug * update readme
24 lines
459 B
Plaintext
24 lines
459 B
Plaintext
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
|
|
|
|
# Let's Encrypt certificates will be written to this directory.
|
|
env HOME=/etc/caddy
|
|
|
|
limit nofile 1048576 1048576
|
|
|
|
script
|
|
cd /etc/caddy
|
|
rootdir="$(mktemp -d -t "caddy-run.XXXXXX")"
|
|
exec /usr/bin/caddy -agree -log=stdout -conf=/etc/caddy/Caddyfile -root=$rootdir
|
|
end script
|