Skip to content
This repository has been archived by the owner on May 18, 2020. It is now read-only.

Commit

Permalink
Update systemd example (#40)
Browse files Browse the repository at this point in the history
* systemd : Limit the number of restarts

* systemd : Let loose cuz tis' the season!
  • Loading branch information
msfjarvis authored and mholt committed Dec 24, 2016
1 parent f8cd331 commit c4bd010
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion systemd/caddy.service
Expand Up @@ -5,7 +5,9 @@ After=network.target

[Service]
User=caddy
LimitNOFILE=8192
StartLimitInterval=86400
StartLimitBurst=5
LimitNOFILE=16535
ExecStart=/usr/local/bin/caddy -agree=true -conf=/etc/caddy/Caddyfile -pidfile=/var/run/caddy/caddy.pid -log=stderr
PIDFile=/var/run/caddy/caddy.pid
Restart=on-failure
Expand Down

0 comments on commit c4bd010

Please sign in to comment.