From ca0c91b6b86904924718e968ad56b14b66c03c02 Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 10 Aug 2016 16:49:13 +0800 Subject: [PATCH] add kcptun.service --- kcptun/systemd/kcptun | 1 + kcptun/systemd/kcptun.service | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 kcptun/systemd/kcptun create mode 100644 kcptun/systemd/kcptun.service 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