|
From: Jeff S. <jef...@gm...> - 2008-07-30 18:56:43
|
On Wed, Jul 30, 2008 at 12:44 PM, Jeff Sadowski <jef...@gm...> wrote:
> It looks like the init.d/motion uses start-stop-daemon and the man
> page on start-stop-daemon indicates that it sends the 15 signal by
> default for the --stop and that init.d/motion doesn't specify a signal
> it would send signal 15 to motion so you could lookup the pid of the
> motion you want to stop and do kill -s 15 on it so if you want to stop
> all motions you could do as follows
>
> PIDS=`ps h -C motion -o pid`
> for PID in ${PIDS}; do
> kill -s 15 ${PID}
> done
>
> reading the man page on kill indicated its default signal is 15 so I'm
> guessing killall would send signal 15 as well. Thus it should produce
> the same results and I don't think the question is answered. I'm
> curious if it still creates a crash log? Maybe another signal is
> suppose to be sent to motion? the only difference I can see is by
> whom the signal is being sent that shouldn't make a difference should
> it? really your original script should act the same.
>
Reading http://www.lavrsen.dk/twiki/bin/view/Motion/SignalsKill
It seems as though SIGTERM aka signal 15 is the proper way to stop
motion killall, kill and start-stop-daemon --stop all send the SIGTERM
So I'm gonna guess you still have an issue when you stop motion. Maybe
you don't have the proper libs to do video encoding that you specified
in the config file?
> On Wed, Jul 30, 2008 at 9:52 AM, Brett Alton <bre...@gm...> wrote:
>> init.d, why did I think of that.
>>
>> So it's pretty much similar to Apache.
>>
>> Thank you very much!
>>
>> On Wed, Jul 30, 2008 at 11:48 AM, Jim Crew <jim...@gm...> wrote:
>>> Hi Brett,
>>>
>>> I use Ubuntu (8.04), and I stop it from the command line using:
>>>
>>> sudo /etc/init.d/motion stop
>>>
>>> I don't use gksu, but I assume it should work fine. Incidentally, I use:
>>>
>>> sudo /etc/init.d/motion start
>>>
>>> to start it.
>>>
>>> Hope this helps,
>>>
>>> Kind regards,
>>>
>>> Jim
>>>
>>> On Wed, Jul 30, 2008 at 4:05 PM, Brett Alton <bre...@gm...> wrote:
>>>> Right now, on my girlfriend's desktop we have a common Logitech webcam
>>>> that we are using as a motion security camera (thanks!)
>>>>
>>>> I've created two launchers on her desktop, on called "Motion - Start"
>>>> while the other is "Motion - Stop". We did this because we don't need
>>>> it running all the time; only when we're out.
>>>>
>>>> Right now, 'start' consist of:
>>>>
>>>> gksu motion
>>>>
>>>> while 'stop' contains
>>>>
>>>> gksu killall motion
>>>>
>>>> Unfortunately, 'gksu killall motion' creates a crash log and launches
>>>> Apport here in Ubuntu.
>>>>
>>>> Thus, my question is, what is the proper way to kill motion with a
>>>> single command on the command line?
>>>>
>>>> --
>>>> Brett Alton
>>>> bre...@gm...
>>>>
>>>> Do you really need to print this email? Help preserve our environment!
>>>>
>>>> -------------------------------------------------------------------------
>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>>>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>>>> Grand prize is a trip for two to an Open Source event anywhere in the world
>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>> _______________________________________________
>>>> Motion-user mailing list
>>>> Mot...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Motion-user mailing list
>>> Mot...@li...
>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>
>>
>>
>>
>> --
>> Brett Alton
>> bre...@gm...
>>
>> Do you really need to print this email? Help preserve our environment!
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Motion-user mailing list
>> Mot...@li...
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>
>
|