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

Hi,

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,
S.

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).

/etc/monit.d/chirpstack-gateway-bridge

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'"
5 Likes

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.

image

1 Like

Yep, that did it ! Thanks guys.