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