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. Re: motion daemon not starting (Ralph Shamie)
2. Re: motion daemon not starting (Terry Parker)
----------------------------------------------------------------------
Message: 1
Date: Tue, 15 May 2018 09:11:17 -0700
From: Ralph Shamie <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] motion daemon not starting
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Terry,
Thanks for your reply. I do have that:
############################################################
# Daemon
############################################################
# Start in daemon (background) mode and release terminal (default: off)
;daemon off
;3/20/18 turnded daemon on:
daemon on
On 05/15/2018 12:13 AM, Terry Parker wrote:
> Do you have this in your motion.conf:
>
>
> ############################################################
> # Daemon
> ############################################################
>
> # Start in daemon (background) mode and release terminal (default: off)
> daemon on
>
>
>
> On Mon, May 14, 2018 at 5:36 PM, Ralph Shamie <[email protected]
> <mailto:[email protected]>> wrote:
>
> I have installed motion 4.1 on PCLinuxOS. (It did not come with
> motioneye.)
>
> I can run it from the root terminal and it saves images. But the
> daemon will not start automatically:
>
>
> 1.
>
> /usr/bin/ motion (executable file) installed by
> synaptic
>
> 2.
>
> /usr/share/doc/motion/motion_guide.html not
> installed from synaptic
>
> 3.
>
> /usr/share/motion/examples/ installed by synaptic
>
> 4.
>
> /etc/motion/ installed by synaptic
>
> 5.
>
> /var/tmp/ motion.log installed but stopped logging
> here after a few days
>
> 6.
>
> /home/ralph/.motion created this and copied
> motion.conf there
>
> 7.
>
> /var/run/motion/ motion.pid not installed from
> synaptic; i created this directory; ??? ??? ???
> pid file not showing up
>
> 8.
>
> /etc/init.d/motion not installed from synaptic
>
> 9.
>
> /etc/default/motion not installed from synaptic; i
> created the file with
>
> |start_motion_daemon=yes|
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Motion-user mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/motion-user
> <https://lists.sourceforge.net/lists/listinfo/motion-user>
> https://motion-project.github.io/ <https://motion-project.github.io/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Tue, 15 May 2018 11:17:22 -0500
From: Terry Parker <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] motion daemon not starting
Message-ID:
<CAErB2=+Ua6Mfcgd5E9rZMB8ET=CoOy=tCRmfsbSy=oviqjq...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Here is the contents of my motion file in /etc/init.d/:
#!/bin/sh -e
#
# /etc/init.d/motion: Start the motion detection
#
### BEGIN INIT INFO
# Provides: motion
# Required-Start: $local_fs $syslog $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Motion detection
# Description: loads motion and assigns privileges
### END INIT INFO
# Ported to new debian way using sh and /lib/lsb/init-functions
# by Angel Carpintero <[email protected]>
# Modified by : Juan Angulo Moreno <[email protected]>
# Eddy Petrisor <[email protected]>
# ArAge <[email protected]>
NAME=motion
PATH_BIN=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/bin/motion
DEFAULTS=/etc/default/$NAME
DESC="motion detection daemon"
ENV="env -i LANG=C PATH=$PATH_BIN"
. /lib/lsb/init-functions
test -x $DAEMON || exit 0
RET=0
[ -r "$DEFAULTS" ] && . "$DEFAULTS" || start_motion_daemon=yes
check_daemon_enabled () {
if [ "$start_motion_daemon" = "yes" ] ; then
return 0
else
log_warning_msg "Not starting $NAME daemon, disabled via
/etc/default/$NAME"
return 1
fi
}
case "$1" in
start)
if check_daemon_enabled ; then
if ! [ -d /var/run/motion ]; then
mkdir -m 02750 /var/run/motion
chown motion:motion /var/run/motion
fi
if ! [ -d /var/lib/motion ]; then
mkdir -m 02750 /var/lib/motion
chown motion:adm /var/lib/motion
fi
if ! [ -d /var/log/motion ]; then
mkdir -m 02750 /var/log/motion
chown motion:adm /var/log/motion
fi
log_daemon_msg "Starting $DESC" "$NAME"
if start-stop-daemon --start --oknodo --exec $DAEMON -b --chuid
motion ; then
log_end_msg 0
else
log_end_msg 1
RET=1
fi
fi
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
if start-stop-daemon --stop --oknodo --exec $DAEMON --retry 30 ; then
log_end_msg 0
else
log_end_msg 1
RET=1
fi
;;
reload|force-reload)
log_daemon_msg "Reloading $NAME configuration"
if start-stop-daemon --stop --signal HUP --exec $DAEMON ; then
log_end_msg 0
else
log_end_msg 1
RET=1
fi
;;
restart-motion)
if check_daemon_enabled ; then
log_action_begin_msg "Restarting $NAME"
if $0 stop && $0 start ; then
log_action_end_msg 0
else
log_action_cont_msg "(failed)"
RET=1
fi
fi
;;
restart)
$0 restart-motion
;;
status)
status_of_proc /usr/bin/motion motion
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|status}"
RET=1
;;
esac
exit $RET
This is on Debian 9
On Tue, May 15, 2018 at 11:11 AM, Ralph Shamie <[email protected]> wrote:
> Terry,
>
> Thanks for your reply. I do have that:
>
> ############################################################
> # Daemon
> ############################################################
>
> # Start in daemon (background) mode and release terminal (default: off)
> ;daemon off
> ;3/20/18 turnded daemon on:
> daemon on
>
> On 05/15/2018 12:13 AM, Terry Parker wrote:
>
> Do you have this in your motion.conf:
>
>
> ############################################################
> # Daemon
> ############################################################
>
> # Start in daemon (background) mode and release terminal (default: off)
> daemon on
>
>
>
> On Mon, May 14, 2018 at 5:36 PM, Ralph Shamie <[email protected]> wrote:
>
>> I have installed motion 4.1 on PCLinuxOS. (It did not come with
>> motioneye.)
>>
>> I can run it from the root terminal and it saves images. But the daemon
>> will not start automatically:
>>
>>
>>
>> 1.
>>
>> /usr/bin/ motion (executable file)
>> installed by synaptic
>> 2.
>>
>> /usr/share/doc/motion/motion_guide.html not installed from
>> synaptic
>> 3.
>>
>> /usr/share/motion/examples/ installed
>> by synaptic
>> 4.
>>
>> /etc/motion/
>> installed by synaptic
>> 5.
>>
>> /var/tmp/ motion.log
>> installed but stopped logging here after a few days
>> 6.
>>
>> /home/ralph/.motion
>> created this and copied motion.conf there
>> 7.
>>
>> /var/run/motion/ motion.pid
>> not installed from synaptic; i created this directory;
>>
>> pid file not showing up
>> 8.
>>
>> /etc/init.d/motion
>> not installed from synaptic
>> 9.
>>
>> /etc/default/motion
>> not installed from synaptic; i created the file with
>>
>> start_motion_daemon=yes
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> https://motion-project.github.io/
>>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> 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...
------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 143, Issue 18
********************************************