[SOLVED] Is there a way to automatically start chirpstack-udp-bridge at boot time?


I would like to have Chirpstack-udp-bridge be started every time gateway boots.
I digged into init.d, but adding sylims in rcXXX.d directories as it is done for Chirpstack-udp-bridge just has no effect.
Searched how to add Chirpstack-udp-bridge to “monit” managed services, with no more success.

Btw, starting it manually , as mentioned in another post (Gateway OS forwarding to TTN) works well, but i really would like not to have to do it manually everytime gateway reboots.

Any idea ?
Thx by advance,

1 Like

you might have to write your own monit file.
I dont know how your gateway-OS looks like, we are using Multitech (mostly).


check process chirpstack-gateway-bridge with pidfile /var/run/chirpstack-gateway-bridge.pid
    start program = "/bin/bash -c '/etc/init.d/chirpstack-gateway-bridge start'"
    stop program = "/bin/bash -c '/etc/init.d/chirpstack-gateway-bridge stop'"

Thx a lot @chopmann, it s exactly what i needed. Wasn’t familiar with monit and was expecting to find checked services in configuration file…
after creating a script as u ve suggested, chirpstack-udp-bridge shows up at startup.


1 Like

Yep, that did it ! Thanks guys.

Update: the Monit code is sligthly different in GatewayOS 4.1.1 (and probably the newer versions). Here it is:

check process chirpstack-udp-forwarder with pidfile /var/run/chirpstack-udp-forwarder.pid
	start program = “/etc/init.d/chirpstack-udp-forwarder start”
	stop program = “/etc/init.d/chirpstack-udp-forwarder stop”