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. syntax help starting more than one instance of motion
      (Richard Bown)
   2. Re: syntax help starting more than one instance of motion
      (Dave Howorth)
   3. Re: syntax help starting more than one instance of motion
      (Barry Martin)
   4. Re: syntax help starting more than one instance of motion
      (Roger Heflin)
   5. Re: syntax help starting more than one instance of motion
      (Richard Bown)


----------------------------------------------------------------------

Message: 1
Date: Mon, 09 Jan 2023 13:14:35 +0000
From: Richard Bown <[email protected]>
To: Motion discussion list <[email protected]>
Subject: [Motion-user] syntax help starting more than one instance of
        motion
Message-ID: <[email protected]>
Content-Type: text/plain; charset="UTF-8"

Hi,
I have two instances of motion running, at the moment on two small SBC
, however the early device cashes after a couple of days, 
So I am tring to get two instances on the same computer an Odroid N2+
which has spare capacity
Trying to stop start with systemd using systemctl
I have motion running from 2 directories /etc/motion and /etc/motion2 ,
and looks OK.
motion.service in /etc/systemd/system is giving me problems , I have
tried :-

[Unit]
Description=Motion detection video capture daemon
Documentation=man:motion(1)

[Service]
Type=simple
User=motion
ExecStart=/usr/bin/motion -c /etc/motion/motion.conf -d 9

#[Service]
#Type=simple
#user=motion
#ExecStart=/usr/bin/motion -c /etc/motion2/motion.conf -d 7


running systemctl restart motion doesn't like the above , thats why the
hashes are there. Does anyone know what the correct syntax would be
please



------------------------------

Message: 2
Date: Mon, 9 Jan 2023 13:40:24 +0000
From: Dave Howorth <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] syntax help starting more than one instance
        of motion
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII

On Mon, 09 Jan 2023 13:14:35 +0000
Richard Bown <[email protected]> wrote:

> Hi,
> I have two instances of motion running, at the moment on two small SBC
> , however the early device cashes after a couple of days, 
> So I am tring to get two instances on the same computer an Odroid N2+
> which has spare capacity
> Trying to stop start with systemd using systemctl
> I have motion running from 2 directories /etc/motion
> and /etc/motion2 , and looks OK.
> motion.service in /etc/systemd/system is giving me problems , I have
> tried :-
> 
> [Unit]
> Description=Motion detection video capture daemon
> Documentation=man:motion(1)
> 
> [Service]
> Type=simple
> User=motion
> ExecStart=/usr/bin/motion -c /etc/motion/motion.conf -d 9
> 
> #[Service]
> #Type=simple
> #user=motion
> #ExecStart=/usr/bin/motion -c /etc/motion2/motion.conf -d 7
> 
> 
> running systemctl restart motion doesn't like the above , thats why
> the hashes are there. Does anyone know what the correct syntax would
> be please

You don't give much detail, but assuming that that file starts motion
correctly but not motion2 ...

Probably the simplest option is to create separate motion.service and
motion2.service files and control them separately.



------------------------------

Message: 3
Date: Mon, 9 Jan 2023 08:37:31 -0600
From: Barry Martin <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] syntax help starting more than one instance
        of motion
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"


Hi Richard!

> running systemctl restart motion doesn't like the above , thats why the
> hashes are there. Does anyone know what the correct syntax would be please

I have found sometimes the restart command doesn't work right. What I've 
done is replaced with two lines:

 ??? systemctl stop motion

 ??? systemctl start motion


Occasionally I'll also throw a 'sleep 1' or 'sleep5' command between the 
two to be sure.


Barry
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 4
Date: Mon, 9 Jan 2023 09:07:43 -0600
From: Roger Heflin <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] syntax help starting more than one instance
        of motion
Message-ID:
        <CAAMCDeff21WGBL6=kH1Nkco=ggwde-a5uj+8gmv_zzgdne0...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

What is the use case for 2 instances of motion?

For the 2nd instance you would need to duplicate the systemd files and
change the names to be motion2.


On Mon, Jan 9, 2023 at 8:39 AM Barry Martin <[email protected]> wrote:

>
> Hi Richard!
>
> running systemctl restart motion doesn't like the above , thats why the
> hashes are there. Does anyone know what the correct syntax would be please
>
> I have found sometimes the restart command doesn't work right.  What I've
> done is replaced with two lines:
>
>     systemctl stop motion
>
>     systemctl start motion
>
>
> Occasionally I'll also throw a 'sleep 1' or 'sleep5' command between the
> two to be sure.
>
>
> Barry
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 5
Date: Mon, 09 Jan 2023 15:36:47 +0000
From: Richard Bown <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] syntax help starting more than one instance
        of motion
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"


I found that 9~ 10 cams slowed motion down as the cpu usage was high,
also by splitting them I can split the indoor cameras away from the
outdoor cams
which means If I'm in the the indoor cams can all be shut down and
started when I'm out, ?thats done with another application?

On Mon, 2023-01-09 at 09:07 -0600, Roger Heflin wrote:
> What is the use case for 2 instances of motion?
> 
> For the 2nd instance you would need to duplicate the systemd files
> and change the names to be motion2.
> 
> 
> On Mon, Jan 9, 2023 at 8:39 AM Barry Martin <[email protected]>
> wrote:
> > 
> > Hi Richard!
> >  
> > > running systemctl restart motion doesn't like the above , thats why the
> > > hashes are there. Does anyone know what the correct syntax would be please
> > I have found sometimes the restart command doesn't work right.?
> > What I've done is replaced with two lines:
> > ??? systemctl stop motion
> > ??? systemctl start motion
> > 
> > Occasionally I'll also throw a 'sleep 1' or 'sleep5' command
> > between the two to be sure.
> > 
> > Barry
> > _______________________________________________
> > Motion-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/motion-user
> > https://motion-project.github.io/
> > 
> > Unsubscribe:
> > https://lists.sourceforge.net/lists/options/motion-user
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
> 
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 197, Issue 4
*******************************************

Reply via email to