If the master collectd instance gets shut down in an uncontrolled manner (crashes!) then sqm_collect scripts will be left orphaned and will run forever. Modify script to check if it still has a parent and if not, exit. Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>lilik-openwrt-22.03