From 18a68ee6fd60e9c6d0fa2547e4ead0bcc5e0bb01 Mon Sep 17 00:00:00 2001 From: iceBear67 Date: Mon, 6 Jul 2026 14:24:38 +0800 Subject: [PATCH] fix: multiple tsdns containers are created --- image/overlay/etc/init.d/tsdns | 4 ---- image/overlay/usr/bin/tsdns | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/image/overlay/etc/init.d/tsdns b/image/overlay/etc/init.d/tsdns index beb019d..1f211e3 100755 --- a/image/overlay/etc/init.d/tsdns +++ b/image/overlay/etc/init.d/tsdns @@ -4,9 +4,5 @@ depend() { need docker net } -supervisor="supervise-daemon" -respawn_delay=5 -respawn_max=0 - command="/usr/bin/tsdns" pidfile="/run/${RC_SVCNAME}.pid" diff --git a/image/overlay/usr/bin/tsdns b/image/overlay/usr/bin/tsdns index 5a7eed1..be2404b 100755 --- a/image/overlay/usr/bin/tsdns +++ b/image/overlay/usr/bin/tsdns @@ -1,6 +1,5 @@ #!/bin/sh - if ! docker network inspect "workspace" ; then docker network create \ --attachable \ @@ -23,4 +22,5 @@ docker run -e "TS_AUTHKEY=_TS_AUTHKEY_" \ -p 41641:41641/udp \ -v "/data/tsdns:/tstate" \ --restart unless-stopped \ + --name "tsdns" \ ghcr.io/saltedfishclub/tsdns:latest