#!/bin/sh
/opt/signald/bin/signald --system-socket &
while [ ! -S /var/run/signald/signald.sock ]; do
    sleep 0.1
done
cbot /home/cbot/config/cbot.cfg

#!/bin/sh
/opt/signald/bin/signald --system-socket &
while [ ! -S /var/run/signald/signald.sock ]; do
    sleep 0.1
done
cbot /home/cbot/config/cbot.cfg
kill %1

Kill signald after cbot terminates (presumably on error)
Kill signald after cbot terminates (presumably on error)
