diff --git a/templates/etc/systemd/system/caddy.service.epp b/templates/etc/systemd/system/caddy.service.epp index 267735f..3f684d7 100644 --- a/templates/etc/systemd/system/caddy.service.epp +++ b/templates/etc/systemd/system/caddy.service.epp @@ -26,7 +26,7 @@ Environment=HOME=<%= $caddy_home %> Environment=CADDYPATH=<%= $caddy_ssl_dir %> ; Always set "-root" to something safe in case it gets forgotten in the Caddyfile. -ExecStart=<%= $install_path %>/caddy -log=<%= $caddy_log_dir %>/caddy.log -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp -http-port=<%= $caddy_http_port %> -https-port=<%= $caddy_https_port %> +ExecStart=<%= $install_path %>/caddy --log=<%= $caddy_log_dir %>/caddy.log --agree=true --conf=/etc/caddy/Caddyfile --root=/var/tmp --http-port=<%= $caddy_http_port %> --https-port=<%= $caddy_https_port %> ExecReload=/bin/kill -USR1 $MAINPID ; Use graceful shutdown with a reasonable timeout