1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

add kcptun.service

This commit is contained in:
kev 2016-08-10 16:49:13 +08:00
parent d20336c373
commit ca0c91b6b8
2 changed files with 12 additions and 0 deletions

1
kcptun/systemd/kcptun Normal file
View File

@ -0,0 +1 @@
KCPTUN_OPTS="-l :8399 -t 127.0.0.1:8388"

View 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