Replies: 4 comments
-
I'm not familiar with "systemd .socket activated service file". Can you provide more details or maybe an example of other programs using it? |
Beta Was this translation helpful? Give feedback.
-
https://www.freedesktop.org/software/systemd/man/systemd.socket.html
The socket watches for access to the ListenStream port, after which it executes the Exec lines. This could be used to start/stop the motion service on-demand. |
Beta Was this translation helpful? Give feedback.
-
This implies (I believe) that motion would not usually run - it would be started on demand by systemd when a client (e.g. a web browser) connects, and would exit after the streaming connection is closed. It wouldn't be able to do it's usual motion detection tasks etc. If that's the case, then I think it might be a better idea to just implement this with a simple gstreamer pipeline or similar, rather than add this to motion? If I've got this wrong, and there's a use-case for this which would utilise motion's major features, then could you outline what sort of usage you were thinking of? |
Beta Was this translation helpful? Give feedback.
-
On point one you are correct. This is part of a lab server setup with a
webcam that monitors a robotic arm. 99% of the time the server is doing
heavy calculations and needs as many resources available as possible, but
occasionally we need to view the robot's actions remotely in case a problem
arises.
On point two I am unfamiliar with gstreamer pipelines. I know this can work
via systemd sockets, although there may certainly be a better way as you
have indicated.
…On Fri, Feb 8, 2019 at 3:29 PM Tim Small ***@***.***> wrote:
This implies (I believe) that motion would not usually run - it would be
started on demand by systemd when a client (e.g. a web browser) connects,
and would exit after the streaming connection is closed. It wouldn't be
able to do any motion detection etc.
If that's the case, then I think it might be a better idea to just
implement this with a simple gstreamer pipeline or similar, rather than add
this to motion?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#882 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Akf1CD33baI8YbFgU5cvljAqYvjaC1s4ks5vLd4NgaJpZM4Z4Y63>
.
|
Beta Was this translation helpful? Give feedback.
-
Would it be possible to add a systemd .socket activated service file to the default installation (when using the httpd server)? This would allow my server to use a lot less resources when the stream is not being accessed via a web interface.
Beta Was this translation helpful? Give feedback.
All reactions