Verified on Feisty that removing --exec makes it work. Additionally, the --oknodo argument to start-stop-daemon makes the script return success even if it did not kill gdm.
I guess start-stop-daemon should just ignore the --exec argument when --stop is present? At least not just ignore everything and quit.
OTOH if this is expected behavior from start-stop-daemon, many init scripts must be fixed.
Verified on Feisty that removing --exec makes it work. Additionally, the --oknodo argument to start-stop-daemon makes the script return success even if it did not kill gdm.
I guess start-stop-daemon should just ignore the --exec argument when --stop is present? At least not just ignore everything and quit.
OTOH if this is expected behavior from start-stop-daemon, many init scripts must be fixed.