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. Re: Huge syslog due to motion messages (Dave Howorth) 2. Re: motion start / stop / restart command (tosiara) ---------------------------------------------------------------------- Message: 1 Date: Sat, 02 Jan 2016 00:00:33 +0000 From: Dave Howorth <d...@howorth.org.uk> Subject: Re: [Motion-user] Huge syslog due to motion messages To: Motion discussion list <motion-user@lists.sourceforge.net> Message-ID: <1451692833.13435.278.ca...@piglet.howorth.org.uk> Content-Type: text/plain; charset="UTF-8" On Fri, 2016-01-01 at 18:56 -0500, Harlan Daneker wrote: > # Level of log messages [1..9] (EMR, ALR, CRT, ERR, WRN, NTC, INF, > DBG, ALL). (default: 6 / NTC) > log_level 7 You mean 5 ? > > > The log level can be set in motion.conf > > > On Fri, Jan 1, 2016 at 5:28 PM, Mariusz Ciszewski > <mariusz.ciszew...@gmail.com> wrote: > Hello > > > Is it really necessarry to put into logfile every log about > every picture is saved? > > > https://drive.google.com/file/d/0B3n2jx0hGw0LcVZfakZJVHIwUVk/view > > > > > > I mean lines: > > > Jan 1 22:23:06 LT310 motion: [5] [NTC] [EVT] event_newfile: > File of type 1 saved > to: /home/motion/tmp-adam/2016-01-01--22-23-04-01-04.jpg > Jan 1 22:23:08 LT310 motion: [5] [NTC] [EVT] event_newfile: > File of type 1 saved > to: /home/motion/tmp-adam/2016-01-01--22-23-05-00-04.jpg > Jan 1 22:23:09 LT310 motion: [5] [NTC] [EVT] event_newfile: > File of type 1 saved > to: /home/motion/tmp-adam/2016-01-01--22-23-07-00-04.jpg > Jan 1 22:23:11 LT310 motion: [5] [NTC] [EVT] event_newfile: > File of type 1 saved > to: /home/motion/tmp-adam/2016-01-01--22-23-08-00-04.jpg > Jan 1 22:23:12 LT310 motion: [5] [NTC] [EVT] event_newfile: > File of type 1 saved > > > > > It makes logfile huge a lot. > > > Please confirm if this is really necessary. > > > Best regards > Mariusz > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome ------------------------------ Message: 2 Date: Sat, 2 Jan 2016 10:29:54 +0200 From: tosiara <tosi...@gmail.com> Subject: Re: [Motion-user] motion start / stop / restart command To: Motion discussion list <motion-user@lists.sourceforge.net> Message-ID: <cachtdwsgxvaqjptao606kzev70qa7rno7k7bzjjpo3oubvo...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Use killall -w motion On Jan 2, 2016 01:20, "Mariusz Ciszewski" <mariusz.ciszew...@gmail.com> wrote: > root@LT310:~# uname -a > Linux LT310 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u6 > (2015-11-09) i686 GNU/Linux > > root@LT310:~# killall motion > root@LT310:~# killall motion > root@LT310:~# killall motion > motion: no process found > root@LT310:~# > > So how can I killall all motion processes using only one command ? > > 2015-12-22 13:40 GMT+01:00 Richard Bown <rich...@g8jvm.com>: > >> On Tue, 22 Dec 2015 14:27:19 +0200 >> tosiara <tosi...@gmail.com> wrote: >> >> > Daemon is not equal to service >> > Service is a start and stop script. Those scripts are delivered with the >> > package >> > I personally use daemon mode and "killall" command >> >> >> >> >> >> Unless he says which OS he is using , this all meaningless, the one that >> can be ruled out is >> Slackware, because if he was using that, he wouldn't have asked the >> question. >> > >> > On Tue, Dec 22, 2015 at 2:13 PM, Richard Bown <rich...@g8jvm.com> >> wrote: >> > >> > > On Tue, 22 Dec 2015 14:05:51 +0200 >> > > tosiara <tosi...@gmail.com> wrote: >> > > >> > > > The service stuff depends on the OS and package version >> > > > Which OS and motion package are you using? >> > > > There should be a manual somewhere how to create motion service >> (can't >> > > find >> > > > it right now) >> > > >> > > It should self create if to set daemon =yes in motion.conf >> > > right at the top of the file >> > > >> > > >> > > >> > > >> > > > >> > > > On Tue, Dec 22, 2015 at 1:57 PM, Mariusz Ciszewski < >> > > > mariusz.ciszew...@gmail.com> wrote: >> > > > >> > > > > Hmm... >> > > > > >> > > > > root@LT310:~# killall motion >> > > > > motion: no such process >> > > > > root@LT310:~# service motion start >> > > > > Failed to start motion.service: Unit motion.service failed to >> load: No >> > > > > such file or directory. >> > > > > root@LT310:~# service motion stop >> > > > > Failed to stop motion.service: Unit motion.service not loaded. >> > > > > root@LT310:~# /usr/local/bin/motion >> > > > > [0] [NTC] [ALL] conf_load: Processing thread 0 - config file >> > > > > /usr/local/etc/motion/motion.conf >> > > > > [0] [NTC] [ALL] config_thread: Processing config file >> > > > > /usr/local/etc/motion/wejscie.conf >> > > > > [0] [NTC] [ALL] config_thread: Processing config file >> > > > > /usr/local/etc/motion/brama.conf >> > > > > [0] [NTC] [ALL] config_thread: Processing config file >> > > > > /usr/local/etc/motion/garaz.conf >> > > > > [0] [NTC] [ALL] config_thread: Processing config file >> > > > > /usr/local/etc/motion/pawel.conf >> > > > > [0] [NTC] [ALL] config_thread: Processing config file >> > > > > /usr/local/etc/motion/adam.conf >> > > > > [0] [ALR] [ALL] config_thread: Thread config file >> > > > > /usr/local/etc/motion/warsztat.conf not found: No such file or >> > > directory >> > > > > [0] [NTC] [ALL] motion_startup: Motion Unofficial-Git-2caced3 >> Started >> > > > > [0] [NTC] [ALL] motion_startup: Logging to syslog >> > > > > [0] [NTC] [ALL] motion_startup: Using log type (ALL) log level >> (NTC) >> > > > > [0] [NTC] [ALL] become_daemon: Motion going to daemon mode >> > > > > [0] [NTC] [ALL] become_daemon: Motion going to daemon mode >> > > > > root@LT310:~# service motion stop >> > > > > Failed to stop motion.service: Unit motion.service not loaded. >> > > > > root@LT310:~# >> > > > > >> > > > > ??? >> > > > > >> > > > > 2015-12-22 12:07 GMT+01:00 Richard Bown <rich...@g8jvm.com>: >> > > > > >> > > > >> On Tue, 22 Dec 2015 11:56:19 +0100 >> > > > >> Mariusz Ciszewski <mariusz.ciszew...@gmail.com> wrote: >> > > > >> >> > > > >> > Hello. >> > > > >> > >> > > > >> > I need to have command to stop and restart motion. >> > > > >> > As I know there is no such functionality included into motion >> by >> > > edfault >> > > > >> > (?). >> > > > >> > >> > > > >> > If I know well motion is started in as many instances as many >> > > cameras >> > > > >> there >> > > > >> > are. >> > > > >> > >> > > > >> > So my idea to stop motion is bash and loop >> > > > >> > >> > > > >> > Something like this: >> > > > >> > >> > > > >> > do >> > > > >> > killall motion >> > > > >> > if pgrep motion is "" then exit >> > > > >> > fi >> > > > >> > loop >> > > > >> > >> > > > >> > >> > > > >> > Any other ideas? >> > > > >> > >> > > > >> > >> > > > >> > PS - I need this for /etc/monit/monitrc rules (to start / >> stop / >> > > > >> restart >> > > > >> > action) >> > > > >> > >> > > > >> > Best regards >> > > > >> > Mariusz >> > > > >> >> > > > >> Hiya >> > > > >> depending on whether you are running as a daemon and which >> flavour of >> > > > >> linux you are running >> > > > >> >> > > > >> try " service motion stop or start or restart" >> > > > >> >> > > > >> HTH >> > > > >> >> > > > >> -- >> > > > >> -- >> > > > >> Best wishes /73 >> > > > >> Richard Bown >> > > > >> >> > > > >> Email : rich...@g8jvm.com >> > > > >> HTTP : http://www.g8jvm.com >> > > > >> nil carborundum a illegitemis >> > > > >> >> > > > >> >> > > >> ################################################################################## >> > > > >> Ham Call: G8JVM . QRV: 50-432 MHz + Microwave 23 cms 140W, 13 cms >> > > 100W & >> > > > >> 3cms 5W >> > > > >> Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W >> > > > >> QRV VHF 6mtrs 200W, 4 mtrs 150W, 2mtrs 400W, 70cms 200W >> > > > >> OS: Linux Mint 17.3 x86_64 on a Dell Inspiron N5030 laptop >> > > > >> >> > > > >> >> > > >> ################################################################################## >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> > > >> ------------------------------------------------------------------------------ >> > > > >> _______________________________________________ >> > > > >> Motion-user mailing list >> > > > >> Motion-user@lists.sourceforge.net >> > > > >> https://lists.sourceforge.net/lists/listinfo/motion-user >> > > > >> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome >> > > > >> >> > > > > >> > > > > >> > > > > >> > > > > >> > > >> ------------------------------------------------------------------------------ >> > > > > >> > > > > _______________________________________________ >> > > > > Motion-user mailing list >> > > > > Motion-user@lists.sourceforge.net >> > > > > https://lists.sourceforge.net/lists/listinfo/motion-user >> > > > > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome >> > > > > >> > > > > >> > > >> > > >> > > >> > > -- >> > > -- >> > > Best wishes /73 >> > > Richard Bown >> > > >> > > Email : rich...@g8jvm.com >> > > HTTP : http://www.g8jvm.com >> > > nil carborundum a illegitemis >> > > >> > > >> ################################################################################## >> > > Ham Call: G8JVM . QRV: 50-432 MHz + Microwave 23 cms 140W, 13 cms >> 100W & >> > > 3cms 5W >> > > Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W >> > > QRV VHF 6mtrs 200W, 4 mtrs 150W, 2mtrs 400W, 70cms 200W >> > > OS: Linux Mint 17.3 x86_64 on a Dell Inspiron N5030 laptop >> > > >> > > >> ################################################################################## >> > > >> > > >> > > >> > > >> ------------------------------------------------------------------------------ >> > > _______________________________________________ >> > > Motion-user mailing list >> > > Motion-user@lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/motion-user >> > > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome >> > > >> >> >> >> -- >> -- >> Best wishes /73 >> Richard Bown >> >> Email : rich...@g8jvm.com >> HTTP : http://www.g8jvm.com >> nil carborundum a illegitemis >> >> ################################################################################## >> Ham Call: G8JVM . QRV: 50-432 MHz + Microwave 23 cms 140W, 13 cms 100W & >> 3cms 5W >> Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W >> QRV VHF 6mtrs 200W, 4 mtrs 150W, 2mtrs 400W, 70cms 200W >> OS: Linux Mint 17.3 x86_64 on a Dell Inspiron N5030 laptop >> >> ################################################################################## >> >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Motion-user mailing list >> Motion-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/motion-user >> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome >> > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------------ ------------------------------ _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user End of Motion-user Digest, Vol 116, Issue 2 *******************************************