caddy/caddy.service

17 lines
390 B
SYSTEMD
Raw Permalink Normal View History

2024-06-21 15:18:19 +08:00
/usr/lib/systemd/system/caddy.service
[Unit]
Description=Caddy 1.0 by enoch
After=network-online.target
[Service]
TimeoutStopSec=5s
LimitNOFILE=1048576
LimitNPROC=512
Type=simple
PIDFile=/run/caddy.pid
ExecStart=/root/caddy -conf=/root/caddyfile -quic -agree=true -email=ywnsya@126.com -http2 -pidfile=/run/caddy.pid
ExecReload=/bin/kill -10 $MAINPID
[Install]
WantedBy=multi-user.target