From ef85373a260f3a9f223ecd74d0c91b696568ba7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=A5=E8=AF=BA=E4=B9=A6?= Date: Fri, 21 Jun 2024 09:18:19 +0200 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20caddy.service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- caddy.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 caddy.service diff --git a/caddy.service b/caddy.service new file mode 100644 index 0000000..2f96d6a --- /dev/null +++ b/caddy.service @@ -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 \ No newline at end of file