mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
add kcptun.service
This commit is contained in:
1
kcptun/systemd/kcptun
Normal file
1
kcptun/systemd/kcptun
Normal file
@@ -0,0 +1 @@
|
|||||||
|
KCPTUN_OPTS="-l :8399 -t 127.0.0.1:8388"
|
||||||
11
kcptun/systemd/kcptun.service
Normal file
11
kcptun/systemd/kcptun.service
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=udp tunnel based on kcp protocol
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
EnvironmentFile=-/etc/default/kcptun
|
||||||
|
ExecStart=/usr/bin/kcptun $KCPTUN_OPTS
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user