chirpstack / chirpstack-gateway-bridge

ChirpStack Gateway Bridge abstracts Packet Forwarder protocols into Protobuf or JSON over MQTT.
https://www.chirpstack.io
MIT License
425 stars 273 forks source link

Add option for logfile #43

Closed minggi closed 7 years ago

minggi commented 7 years ago

With the LorixOne Gateway, I have problem to start the gateway as a deamon and to pipe the stout and sterr to a file. START-STOP-DEAMON has a problem with that. I think I have no other options... The Gateway run with a yocto linux 2.1.2.

brocaar commented 7 years ago

What problem does start-stop-daemon have? Did you for example see this https://stackoverflow.com/questions/8251933/how-can-i-log-the-stdout-of-a-process-started-by-start-stop-daemon?

Also note that it might not be a good idea to persist logs on the gateway. I'm not sure about the LorixOne, but usually these devices do not have a lot of storage and the kind memory might not be suitable for lots of writes.