I am trying to use monit to monitor and automatically issues like crashes, memory leaks and cpu hotspinning.
For one application - one that uses DBus (serving and calling funcs) just will not start.
It uses GDBus which errors with
dbus-launch not availiable – which indeed is true as the targets system is quite oldish and there that command does not exist yet exist.
But running the binary from console works - just works - I guess this is because of DBUS_SESSION_BUS_ADDRESS is set properly - but this is not the case in the shell being spawned for monit?
How can I make the shell spawned by monit aware of a shell variable (i.e. DBUS_SESSION_BUS_ADDRESS)?