17 lines
390 B
SYSTEMD
17 lines
390 B
SYSTEMD
|
/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
|