webrtc-streamer icon indicating copy to clipboard operation
webrtc-streamer copied to clipboard

Graceful reload config.json file

Open digger18 opened this issue 7 years ago • 2 comments
trafficstars

Is there a way to send a configuration reload request in the way of SIGHUP or similar to WebRTC Streamer binary?

The way I use it with my application is by updating the config.json dynamically to add and remove RTSP streams.

Is there a way to gracefully reload the config instead of killing the process and restarting it?

BTW, Awesome work!

digger18 avatar Nov 02 '18 09:11 digger18

Hi digger18,

Still now there is noways to reload the config file, however if you just add/remove RTSP streams, WebRTCStreamer do not need to know them.

You can maintain in your application and use the rtsp url directly, the dictionnary in config file is just to give a name instead of an RTSP url. An RTSP url not defined in the config file works the same one of the config file.

An other approach is to add a POST method in the HTTP server to update the config.

Best Regards, Michel.

mpromonet avatar Nov 02 '18 10:11 mpromonet

Hello,

"An other approach is to add a POST method in the HTTP server to update the config."

Maybe some kind of API to manage and reload config.json? Im big fan of your software.

kamcio2603 avatar Dec 14 '18 08:12 kamcio2603