The -b flag to start-stop-daemon really causes problems and should be
removed. When motion believes it is running in the foreground it does
not write a PID file
--
motion fails to start because /var/run/motion is missing
https://bugs.launchpad.net/bugs/294852
You received this bug notification be
Public bug reported:
Binary package hint: motion
I'll describe a fix first from which you may derive the problem: her is
the fix:
install --group=motion --owner=motion -d /var/run/motion
once I did this then the init script would start motion.
Some other observations:
In the init script the