*** This bug is a duplicate of bug 294852 ***
    https://bugs.launchpad.net/bugs/294852

Since /var/run is getting cleared at boot - I think the correct fix is to 
change /etc/init.d/motion to create a /var/run/motion
on daemon start.  It needs to be writable by the uid 'motion' as well:

...
RUNDIR=/var/run/$NAME
...
case "$1" in
  start)
    if check_daemon_enabled ; then
        log_daemon_msg "Starting $DESC" "$NAME"
        if [ ! -d $RUNDIR ]; then
            mkdir $RUNDIR
            chown root:motion $RUNDIR
            chmod g+w $RUNDIR
        fi
        if start-stop-daemon --start --oknodo --exec $DAEMON -b --chuid motion 
; then
            log_end_msg 0
        else
            log_end_msg 1
            RET=1
        fi
    fi
    ;;


** This bug has been marked a duplicate of bug 294852
   motion fails to start because /var/run/motion is missing
 * You can subscribe to bug 294852 by following this link: 
https://bugs.launchpad.net/ubuntu/+source/motion/+bug/294852/+subscribe

-- 
Pacakge does not create a /var/run/motion directory
https://bugs.launchpad.net/bugs/675694
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to