添加 caddy.service

This commit is contained in:
以诺书 2024-06-21 09:18:19 +02:00
parent 5dfcd5756e
commit ef85373a26

17
caddy.service Normal file
View File

@ -0,0 +1,17 @@
/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