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: motion start / stop / restart command (Mariusz Ciszewski)
   2. Re: motion start / stop / restart command (tosiara)
   3. Re: motion start / stop / restart command (Richard Bown)


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

Message: 1
Date: Tue, 22 Dec 2015 12:57:36 +0100
From: Mariusz Ciszewski <mariusz.ciszew...@gmail.com>
Subject: Re: [Motion-user] motion start / stop / restart command
To: Motion discussion list <motion-user@lists.sourceforge.net>
Message-ID:
        <CAOpAQyJuKDVGOYHPhhXZLPYyjYCTGcF=2mvb2fgknnwupeb...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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
>
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 2
Date: Tue, 22 Dec 2015 14:05:51 +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:
        <CACHTdwT0J0J7MESu5xbbJ3=PUWNEEHZ8qCnQpGDmKuvfK36f=w...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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)

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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

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

Message: 3
Date: Tue, 22 Dec 2015 12:13:57 +0000
From: Richard Bown <rich...@g8jvm.com>
Subject: Re: [Motion-user] motion start / stop / restart command
To: motion-user@lists.sourceforge.net
Message-ID: <20151222121357.7ae7ee22.rich...@g8jvm.com>
Content-Type: text/plain; charset=US-ASCII

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


End of Motion-user Digest, Vol 115, Issue 10
********************************************

Reply via email to