Skip to content

Instantly share code, notes, and snippets.

@golf1052
Created March 13, 2016 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save golf1052/9e780bcdc698240463c2 to your computer and use it in GitHub Desktop.
Save golf1052/9e780bcdc698240463c2 to your computer and use it in GitHub Desktop.
My Caddy upstart file
description "Caddy Server startup script"
author "Mathias Beke"
start on runlevel [2345]
stop on runlevel [016]
setuid caddy
setgid caddy
respawn
respawn limit 10 5
limit nofile 4096 4096
script
cd /etc/caddy
exec ./caddy -agree -conf="./golf1052.conf" -email="golf1052@msn.com" -log="/var/log/caddy/caddy.log" -pidfile="./caddy.pid"
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment