I am trying to use your script but couldn't get it to work however found another script within the thread
if ! ps -C oscam > /dev/null; then sh /etc/init.d/softcam restart; fi
which I feel is ignoring the 'if' argument...and restarts the softcam anyway even though it doesn't need restarting...
any ideas please? much appreciated.
Thanks