mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
add kcptun.service
This commit is contained in:
parent
d20336c373
commit
ca0c91b6b8
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
|
Loading…
Reference in New Issue
Block a user