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