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:
still in /tmp so it is not persisted and will get cleaned up when
the container is terminated.
always initalised empty each time the script runs (important if the
container restarts).
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 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:still in
/tmp
so it is not persisted and will get cleaned up when the container is terminated.always initalised empty each time the script runs (important if the container restarts).
Fixes: #15
Signed-off-by: Phill Kelley 34226495+Paraphraser@users.noreply.github.com