zyclonite / zerotier-docker

ZeroTier One as Docker Image
MIT License
305 stars 74 forks source link

unexpected script termination - entrypoint-router.sh #16

Closed Paraphraser closed 1 year ago

Paraphraser commented 1 year ago

Resolves issue raised in #15 where entrypoint-router.sh exits after telling the pipe listener process to go away, with the result that the temporary pipe file does not get cleaned up on a container restart.

The temporary pipe file is not persisted so it will always get cleaned up when the container is terminated or recreated.

The pipe listener process exits automatically without needing any signal from entrypoint-router.sh so the script lines doing that are removed.

Instead of creating the pipe file using mktemp with a random suffix, the hard-coded name "/tmp/zerotier-ipc-log" will be used. The pipe file is:

Fixes: #15

Signed-off-by: Phill Kelley 34226495+Paraphraser@users.noreply.github.com

Paraphraser commented 1 year ago

Tested updated router-main. Works as expected on my Raspberry Pis.