mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-11 07:22:58 +00:00
Small dockerfile release fixes
- Activate zerotier-one.port file (we'll do more with this later) - Add a better process trap Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
This commit is contained in:
parent
c2efdcabc5
commit
2824139510
@ -30,6 +30,16 @@ then
|
|||||||
mkztfile identity.secret 0600 "$ZEROTIER_IDENTITY_SECRET"
|
mkztfile identity.secret 0600 "$ZEROTIER_IDENTITY_SECRET"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkztfile zerotier-one.port 0600 "9993"
|
||||||
|
|
||||||
|
killzerotier() {
|
||||||
|
echo "Killing zerotier"
|
||||||
|
kill $(cat /var/lib/zerotier-one/zerotier-one.pid)
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
|
trap killzerotier INT TERM
|
||||||
|
|
||||||
echo "starting zerotier"
|
echo "starting zerotier"
|
||||||
setsid /usr/sbin/zerotier-one &
|
setsid /usr/sbin/zerotier-one &
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user