Comment 18 for bug 198292

Revision history for this message
stepan (gsembox-v4l) wrote : Re: Hardy upgrade - motion halts upgrade

I install ubuntu 8.04 from scratch and I realized that motion cannot create pid file because it run with user "motion" not root so it has not the privilegies to create a file in directory /var/run.

So I modified the init script adding the following line before to start the daemon:

touch $PIDFILE && chown motion $PIDFILE

it create the pidfile and give motion the ability to modify it with its pid.

I think it is the simplest and effective fix.

I think that the fix proposed by Michael Vogt is bad because it eliminates the pidfile. It limits the powerful of the script (status is drop off)

Best Regards