添加 caddy.service
This commit is contained in:
parent
5dfcd5756e
commit
ef85373a26
17
caddy.service
Normal file
17
caddy.service
Normal 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
|
Loading…
Reference in New Issue
Block a user