balena-io-library / resin-rpi-raspbian

Apache License 2.0
74 stars 27 forks source link

Fix #44, SIGTERM is not properly handled. #48

Closed nghiant2710 closed 7 years ago

nghiant2710 commented 7 years ago

The current entryscript can not trap the stop signal from Docker if we use fg command to wait for the background process to finish. So we should use wait command instead to trap and handle the stop signal properly.