Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
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 motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net 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 <rich...@g8jvm.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: [Motion-user] syntax help starting more than one instance of motion Message-ID: <52e65329d69710a152142d4f76b1f68216c15771.ca...@g8jvm.com> 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 <d...@howorth.org.uk> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] syntax help starting more than one instance of motion Message-ID: <20230109134024.7e3ab...@acer-suse.lan> Content-Type: text/plain; charset=US-ASCII On Mon, 09 Jan 2023 13:14:35 +0000 Richard Bown <rich...@g8jvm.com> 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 <barry3mar...@gmail.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] syntax help starting more than one instance of motion Message-ID: <e75b9834-c350-b3b8-ac14-3dcaa615f...@gmail.com> 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 <roger.hef...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> 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 <barry3mar...@gmail.com> 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 > Motion-user@lists.sourceforge.net > 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 <rich...@g8jvm.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] syntax help starting more than one instance of motion Message-ID: <252d803553b9c3721d0713369ab9d2d2927006c1.ca...@g8jvm.com> 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 <barry3mar...@gmail.com> > 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 > > Motion-user@lists.sourceforge.net > > 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 > Motion-user@lists.sourceforge.net > 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 Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user ------------------------------ End of Motion-user Digest, Vol 197, Issue 4 *******************************************