0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/dist/init/linux-upstart/caddy.conf

26 lines
488 B
Text
Raw Normal View History

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