blob: e254ffe69448b7b43497350a03940698c7306174 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
description "Caddy HTTP/2 web server"
start on runlevel [2345]
stop on runlevel [016]
# centos 6 upstart version does not support console
console log
# centos 6 upstart version does not support setuid/setgid
setuid www-data
setgid www-data
respawn
respawn limit 10 5
# centos 6 upstart version does not support reload
reload signal SIGUSR1
# Let's Encrypt certificates will be written to this directory.
env CADDYPATH=/etc/ssl/caddy
limit nofile 1048576 1048576
script
cd /etc/ssl/caddy
rootdir="$(mktemp -d -t "caddy-run.XXXXXX")"
exec /usr/local/bin/caddy -agree -log=stdout -conf=/etc/caddy/Caddyfile -root=$rootdir
end script
|