I'm having trouble with a script in which there are 2 instances of start-stop-daemon in both start and stop sections.
The problem with this script is that it doesn't start or stop the second daemon - /usr/local/bin/cccam.
case "$1" in
exec start-stop-daemon -S -x $SBOX -- -c /var/etc/sbox/
exec start-stop-daemon -S -x $CCCAM
exec start-stop-daemon -K -R 2 -x $SBOX
exec start-stop-daemon -K -R 2 -x $CCCAM
echo "Usage: $0 start|stop|restart"
It only starts and stops the first daemon - /usr/local/bin/sbox.
Does anyone know why it is the case?