Send Motion-user mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."
Today's Topics:
1. Re: Motion Version 4.01 process end (Colin Law)
2. Re: Motion Version 4.01 process end (John Baker)
3. Re: Motion Version 4.01 process end (Colin Law)
4. Re: Motion Version 4.01 process end (John Baker)
5. Re: Motion Version 4.01 process end (Riccardo Stronati)
----------------------------------------------------------------------
Message: 1
Date: Thu, 10 Nov 2016 08:55:10 +0000
From: Colin Law <[email protected]>
Subject: Re: [Motion-user] Motion Version 4.01 process end
To: Motion discussion list <[email protected]>
Message-ID:
<CAL=0glvbiwrni7i-t61q-7gzb1ndmfutr-q3kyptx5zszkq...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
No need to apologise. I have a vested interest as I will shortly be using
motion on a pi and so am keen for you to sort out the problems before I
fall over them :)
Colin
On 10 November 2016 at 08:42, Riccardo Stronati <[email protected]>
wrote:
> I'm sorry, I didn't try I was off for work.
> I'll try this evening, thanks you again.
>
> Riccardo
>
> 2016-11-09 21:47 GMT+01:00 Colin Law <[email protected]>:
>
>> Ricardo, did you have a chance to try my suggestion?
>>
>> Colin
>>
>> On 6 November 2016 at 21:57, Colin Law <[email protected]> wrote:
>>
>>> On 6 November 2016 at 20:02, Riccardo Stronati <[email protected]>
>>> wrote:
>>>
>>>>
>>>> this is the motion.service
>>>> [Unit]
>>>> Description=Motion daemon
>>>> After=local-fs.target network.target
>>>>
>>>> [Service]
>>>> PIDFile=/var/run/motion.pid
>>>> ExecStart=/usr/bin/motion
>>>> Type=simple
>>>> StandardError=null
>>>>
>>>> [Install]
>>>> WantedBy=multi-user.target
>>>>
>>>>
>>> I am not an expert in systemd but I do not believe that PIDFile is
>>> appropriate for Type=simple. Normally PIDFile is used with type forking and
>>> indicates the pid value of the process that is to be considered the main
>>> process of the service, whereas type=simple means that the process started
>>> by execstart (ie motion) is the main process and will continue to run. I
>>> think it is possible that systemd is looking for the process in pidfile and
>>> killing motion when it does not appear. I suggest removing the PIDFile
>>> line and see what happens. After removing that line run
>>> sudo systemctl daemon-reload
>>> which tells systemd to re-read the service files then
>>> sudo systemctl start motion
>>> and see if it is any better.
>>>
>>> Colin
>>>
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Developer Access Program for Intel Xeon Phi Processors
>> Access to Intel Xeon Phi processor-based developer platforms.
>> With one year of Intel Parallel Studio XE.
>> Training and support from Colfax.
>> Order your platform today. http://sdm.link/xeonphi
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>
>>
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Thu, 10 Nov 2016 09:01:10 +0000
From: John Baker <[email protected]>
Subject: Re: [Motion-user] Motion Version 4.01 process end
To: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain
[jbaker@pi ~]$ cat /usr/lib/systemd/system/cameras-motion.service
[Unit]
Description=Run motion
After=network.target
[Service]
Type=forking
PIDFile=/var/run/motion/motion.pid
ExecStart=/usr/local/bin/motion -c /usr/local/etc/motion/motion.conf
[Install]
WantedBy=multi-user.target
And in motion.conf:
daemon on
logfile /var/tmp/motion.log
Finally, to ensure service starts when Linux boots:
$ systemctl enable cameras-motion
And to start it now:
$ systemctl start cameras-motion
Also, 'disable', 'stop' and 'status' verbs exist.
------------------------------
Message: 3
Date: Thu, 10 Nov 2016 15:26:37 +0000
From: Colin Law <[email protected]>
Subject: Re: [Motion-user] Motion Version 4.01 process end
To: Motion discussion list <[email protected]>
Message-ID:
<CAL=0gLtbppz+yPb8YyqE_NNh4ObCgQa=qqqsu9w_dmxcodk...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On 10 November 2016 at 09:01, John Baker <[email protected]> wrote:
>
> [jbaker@pi ~]$ cat /usr/lib/systemd/system/cameras-motion.service
> [Unit]
> Description=Run motion
> After=network.target
>
> [Service]
> Type=forking
> PIDFile=/var/run/motion/motion.pid
> ExecStart=/usr/local/bin/motion -c /usr/local/etc/motion/motion.conf
>
By this do you mean to say that the process started by /usr/bin/motion will
fork another process and that motion itself will then terminate?
> [Install]
> WantedBy=multi-user.target
>
> And in motion.conf:
>
> daemon on
>
Perhaps with daemon on the main process does die. I don't know.
Colin
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 4
Date: Thu, 10 Nov 2016 17:38:49 +0000
From: John Baker <[email protected]>
Subject: Re: [Motion-user] Motion Version 4.01 process end
To: [email protected]
Message-ID:
<1478799529.1783004.783784161.4a15d...@webmail.messagingengine.com>
Content-Type: text/plain
Not sure how it works. Runs in the background.
On Thu, Nov 10, 2016, at 03:26 PM, Colin Law wrote:
> On 10 November 2016 at 09:01, John Baker <[email protected]> wrote:
>
> >
> > [jbaker@pi ~]$ cat /usr/lib/systemd/system/cameras-motion.service
> > [Unit]
> > Description=Run motion
> > After=network.target
> >
> > [Service]
> > Type=forking
> > PIDFile=/var/run/motion/motion.pid
> > ExecStart=/usr/local/bin/motion -c /usr/local/etc/motion/motion.conf
> >
>
> By this do you mean to say that the process started by /usr/bin/motion
> will
> fork another process and that motion itself will then terminate?
>
>
>
> > [Install]
> > WantedBy=multi-user.target
> >
> > And in motion.conf:
> >
> > daemon on
> >
>
>
> Perhaps with daemon on the main process does die. I don't know.
>
> Colin
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
------------------------------
Message: 5
Date: Thu, 10 Nov 2016 19:36:48 +0100
From: Riccardo Stronati <[email protected]>
Subject: Re: [Motion-user] Motion Version 4.01 process end
To: Motion discussion list <[email protected]>
Message-ID:
<cabhf65fy-xuqqdnjzw5e0ezrsu03om2uzjzmiubbu8yuey0...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
The John Baker replay worked!
This is my motion.service:
[Unit]
Description=Run motion
After=network.target
[Service]
Type=forking
PIDFile=/home/pi/motion/motion.pid
ExecStart=/usr/bin/motion
[Install]
WantedBy=multi-user.target
I suppouse the problem was due to confusing motion.service file name, in
fact at /etc/init.d there was the motion shell startup script for the old
rc.d system. So i didn't know what happened when i run systemctl
enable/start motion.
Thank for your help
2016-11-10 18:38 GMT+01:00 John Baker <[email protected]>:
> Not sure how it works. Runs in the background.
>
>
>
> On Thu, Nov 10, 2016, at 03:26 PM, Colin Law wrote:
> > On 10 November 2016 at 09:01, John Baker <[email protected]> wrote:
> >
> > >
> > > [jbaker@pi ~]$ cat /usr/lib/systemd/system/cameras-motion.service
> > > [Unit]
> > > Description=Run motion
> > > After=network.target
> > >
> > > [Service]
> > > Type=forking
> > > PIDFile=/var/run/motion/motion.pid
> > > ExecStart=/usr/local/bin/motion -c /usr/local/etc/motion/motion.conf
> > >
> >
> > By this do you mean to say that the process started by /usr/bin/motion
> > will
> > fork another process and that motion itself will then terminate?
> >
> >
> >
> > > [Install]
> > > WantedBy=multi-user.target
> > >
> > > And in motion.conf:
> > >
> > > daemon on
> > >
> >
> >
> > Perhaps with daemon on the main process does die. I don't know.
> >
> > Colin
> > ------------------------------------------------------------
> ------------------
> > Developer Access Program for Intel Xeon Phi Processors
> > Access to Intel Xeon Phi processor-based developer platforms.
> > With one year of Intel Parallel Studio XE.
> > Training and support from Colfax.
> > Order your platform today. http://sdm.link/xeonphi
> > _______________________________________________
> > Motion-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/motion-user
> > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
------------------------------
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
End of Motion-user Digest, Vol 126, Issue 11
********************************************