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: Newbie (Barry Martin)
2. Re: Run Motion as a Service Debian 11 (MrDave)
3. Re: Run Motion as a Service Debian 11 (chuck elliot)
4. Re: Run Motion as a Service Debian 11 (JT)
----------------------------------------------------------------------
Message: 1
Date: Fri, 3 Sep 2021 07:49:17 -0500
From: Barry Martin <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] Newbie
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed
Steve G:
> That is exactly the command on using. However it says that it cannot
> find motion. There are many things available in Fedora that are not in
> the default repo. I'd have to add a new set of repo's to get them. I
> wonder does dervish and have something like? and that is why it's not
> finding motion?
Perhaps a PPA needs to be installed to help find?? I'll admit this is a
WAG, based on my experiences with installing MythTV under Ubuntu and
Raspbian.
------------------------------
Message: 2
Date: Fri, 3 Sep 2021 08:21:00 -0600
From: MrDave <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] Run Motion as a Service Debian 11
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed
Debian 11 went to systemd for Motion so the docs are now out of date.???
There is no longer a file in /etc/default/ that is used.
From my short testing, it seems likes the only thing required is to
make sure the directories and permissions are set as well as making sure
'daemon off' is specified.? (That one tripped me up)
On 9/3/2021 6:39 AM, JT wrote:
> I'm trying to run Motion as a service on Debian 11. I build motion
> from source and installed with make install.
>
> The documents state
>
> Motion can be set up to run as a service which means that it will
> start automatically whenever the computer is started. When Motion is
> installed from apt or from a deb file, default files are installed
> which can be easily modified so that Motion starts as a service. If
> Motion is built directly from source and installed, then these
> additional files will need to be copied, modified and installed
> manually from the source and packaging repositories.
>
> Well I'll be darned if I can find what files need to be copied,
> modified and installed manually.
>
> There is no file /etc/default/motion on my system so I assume that is
> one of the files.
>
> JT
>
>
>
> _______________________________________________
> 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
------------------------------
Message: 3
Date: Fri, 3 Sep 2021 17:52:05 +0100
From: chuck elliot <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] Run Motion as a Service Debian 11
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed
The Raspbian version of the motion package contains the files listed below.
There are files in /usr/share relevant to init and systemd based systems.
I think only "motion.service" unit file is relevant to you. Presumably
this is
sufficient to start motion using systemctl. It contains:
________________________________
[Unit]
Description=Motion daemon
After=local-fs.target network.target
[Service]
PIDFile=/var/run/motion.pid
ExecStart=/usr/bin/motion -n
Type=simple
StandardError=null
[Install]
WantedBy=multi-user.target
______________________________________
Good luck.
CE.
root@chiffchaff:~# apt-file list motion
motion: /etc/default/motion
motion: /etc/init.d/motion
motion: /etc/logrotate.d/motion
motion: /etc/motion/camera1-dist.conf
motion: /etc/motion/camera2-dist.conf
motion: /etc/motion/camera3-dist.conf
motion: /etc/motion/camera4-dist.conf
motion: /etc/motion/motion.conf
motion: /usr/bin/motion
motion: /usr/share/doc-base/motion-guide
motion: /usr/share/doc/motion/CREDITS.gz
motion: /usr/share/doc/motion/NEWS.Debian.gz
motion: /usr/share/doc/motion/README.md
motion: /usr/share/doc/motion/changelog.Debian.armhf.gz
motion: /usr/share/doc/motion/changelog.Debian.gz
motion: /usr/share/doc/motion/changelog.gz
motion: /usr/share/doc/motion/copyright
motion: /usr/share/doc/motion/mask1.png
motion: /usr/share/doc/motion/motion_guide.html
motion: /usr/share/doc/motion/normal.jpg
motion: /usr/share/doc/motion/outputmotion1.jpg
motion: /usr/share/doc/motion/outputnormal1.jpg
motion: /usr/share/man/man1/motion.1.gz
motion: /usr/share/motion/examples/camera1-dist.conf
motion: /usr/share/motion/examples/camera2-dist.conf
motion: /usr/share/motion/examples/camera3-dist.conf
motion: /usr/share/motion/examples/camera4-dist.conf
motion: /usr/share/motion/examples/motion-dist.conf
motion: /usr/share/motion/examples/motion.init-Debian
motion: /usr/share/motion/examples/motion.init-FreeBSD.sh
motion: /usr/share/motion/examples/motion.service
root@chiffchaff:~# more /usr/share/motion/examples/motion.service
On 9/3/21 1:39 PM, JT wrote:
> I'm trying to run Motion as a service on Debian 11. I build motion
> from source and installed with make install.
>
> The documents state
>
> Motion can be set up to run as a service which means that it will
> start automatically whenever the computer is started. When Motion is
> installed from apt or from a deb file, default files are installed
> which can be easily modified so that Motion starts as a service. If
> Motion is built directly from source and installed, then these
> additional files will need to be copied, modified and installed
> manually from the source and packaging repositories.
>
> Well I'll be darned if I can find what files need to be copied,
> modified and installed manually.
>
> There is no file /etc/default/motion on my system so I assume that is
> one of the files.
>
> JT
>
>
>
> _______________________________________________
> 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
------------------------------
Message: 4
Date: Fri, 3 Sep 2021 17:25:05 -0500
From: JT <[email protected]>
To: [email protected]
Subject: Re: [Motion-user] Run Motion as a Service Debian 11
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed
Thanks,
I'll give that a try in the morning, going to do a fresh install and see
if my documents are correct.
If Motion runs from a terminal the the service file should work as well?
Thanks for the tip on daemon!
JT
On 9/3/2021 9:21 AM, MrDave wrote:
> Debian 11 went to systemd for Motion so the docs are now out of date.
> There is no longer a file in /etc/default/ that is used.
>
> From my short testing, it seems likes the only thing required is to
> make sure the directories and permissions are set as well as making
> sure 'daemon off' is specified.? (That one tripped me up)
>
>
> On 9/3/2021 6:39 AM, JT wrote:
>> I'm trying to run Motion as a service on Debian 11. I build motion
>> from source and installed with make install.
>>
>> The documents state
>>
>> Motion can be set up to run as a service which means that it will
>> start automatically whenever the computer is started. When Motion is
>> installed from apt or from a deb file, default files are installed
>> which can be easily modified so that Motion starts as a service. If
>> Motion is built directly from source and installed, then these
>> additional files will need to be copied, modified and installed
>> manually from the source and packaging repositories.
>>
>> Well I'll be darned if I can find what files need to be copied,
>> modified and installed manually.
>>
>> There is no file /etc/default/motion on my system so I assume that is
>> one of the files.
>>
>> JT
>>
>>
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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
------------------------------
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 183, Issue 8
*******************************************