balena-io-library / resin-rpi-raspbian

Apache License 2.0
74 stars 27 forks source link

`fg` stderr output leaks to user logs #56

Closed dfunckt closed 7 years ago

dfunckt commented 7 years ago

When the user's app exits fg complains that the process terminated:

/usr/bin/entry.sh: line 93: fg: job has terminated

This output is captured by the Supervisor and sent over to the Dashboard as if it was output from the user application.

This is due to fg's stderr not being redirected to /dev/null here: https://github.com/resin-io-library/resin-rpi-raspbian/blob/master/entry.sh#L93

That is without using systemd.

nghiant2710 commented 7 years ago

fixed in https://github.com/resin-io-library/resin-rpi-raspbian/pull/63