diff --git a/kcptun/systemd/kcptun b/kcptun/systemd/kcptun new file mode 100644 index 0000000..0695464 --- /dev/null +++ b/kcptun/systemd/kcptun @@ -0,0 +1 @@ +KCPTUN_OPTS="-l :8399 -t 127.0.0.1:8388" diff --git a/kcptun/systemd/kcptun.service b/kcptun/systemd/kcptun.service new file mode 100644 index 0000000..40320f3 --- /dev/null +++ b/kcptun/systemd/kcptun.service @@ -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