Sujet : Re: Systemd ... Pass CL Params to Pgm ?
De : c186282 (at) *nospam* nnada.net (c186282)
Groupes : comp.os.linux.miscDate : 13. Jun 2025, 04:59:47
Autres entêtes
Message-ID : <IDOdnReL_uPYP9b1nZ2dnZfqnPSdnZ2d@giganews.com>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
On 6/12/25 6:58 PM, Carlos E.R. wrote:
On 2025-06-12 23:57, Lawrence D'Oliveiro wrote:
On Thu, 12 Jun 2025 23:43:25 +0200, Carlos E.R. wrote:
>
According to chatgpt ...
>
*Sigh*
<https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#Command%20lines> >
In short: complicated.
I did manage to get the CL params into the Python pgm,
the key was to be extra simple.
However the damned service won't yet start at boot.
I've done others that do ... I'll have to look them
up and see what's different.
Meanwhile, I start the service from an @reboot in
root crontab. That works. Still have to test to
see if it'll automatically RE-start on a crash.
The pgm itself can kind-of do that, but I'd like
systemd to get at it more promptly.
Oh, the pgm uses ffmpeg to grab a low-speed low-rez
rtsp feed from my one cam that's exposed to my front
door area ... can pick up talking there, indeed
even way out on the street or next-door to a
degree. It's saved as a 1-fps .mkv movie ... JUST
enough video to provide 'context' if I need to
call the cops over something. I've higher-rez
cams that show good images, but no front-yard audio.
The pgm polices the mini-vids, erasing ones older
than the specified number of days. It also keeps
track of the ffmpeg spawn ... and can re-start it
if not present ... but the delay is 5 minutes.
I'd like systemd to be much more prompt. Bail-out
in case of serious fail is to deliberately nuke
both the ffmpeg process and the main pgm - but
that relies on systemd restarting everything clean.
ANYway, a little work in progress. I'll post the final
fully-working important bits with notes soon enough.
No, I'm NOT gonna buy a 'Ring' cam so strangers in
China and gangstas can watch my front yard .........