Created a systemd start/auto-restart daemon. It's
a python pgm.
The pgm STARTS just fine ... but the CL params I want
to pass to it - important stuff - do NOT register at
all in the pgm. Have made progress files ... all
the sys.argv[] stuff does NOT register. Only the
defaults wind up applying.
Have tried various kinds of quotes ... no good.
This is VERY annoying ! Seriously limits flexibility.
Any clues ???
Mystery ...
Created a systemd start/auto-restart daemon. It's
a python pgm.
The pgm STARTS just fine ... but the CL params I want
to pass to it - important stuff - do NOT register at
all in the pgm. Have made progress files ... all
the sys.argv[] stuff does NOT register. Only the
defaults wind up applying.
Have tried various kinds of quotes ... no good.
This is VERY annoying ! Seriously limits flexibility.
Any clues ???
COULD hard-wire directories and such ... but that's
really not so great.
in particular the description of ExecStart and the Command Lines
section.
EnvironmentFile=-/etc/sysconfig/spamd
On 12/06/2025 09:07, Carlos E.R. wrote:
EnvironmentFile=-/etc/sysconfig/spamd
You have a directory called /-etc ???
*"Use this environment file if it exists; otherwise, proceed withoutit."*
On Thu, 12 Jun 2025 09:06:36 +0100, Richard Kettlewell wrote:
in particular the description of ExecStart and the Command Lines
section.
Just a note that the permitted syntax of systemd command lines is deliberately restricted. It is not the fully general shell syntax.
The dash has a meaning in systemd parlance. I confess to not knowing
what, so I asked chatgpt after looking perfunctorily at "https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html".
On 6/12/25 5:14 AM, Lawrence D'Oliveiro wrote:
On Thu, 12 Jun 2025 09:06:36 +0100, Richard Kettlewell wrote:
[Unit]
Description=nCam_Recorder
[Service]
ExecStartPre=/bin/sleep 30
ExecStart=python3 "/root/scripts/nCamOperate.py3 /home/nas/shar/VidBak/ camz/nCam/ 3"
According to chatgpt ...
On Thu, 12 Jun 2025 12:27:47 +0200, Carlos E.R. wrote:
The dash has a meaning in systemd parlance. I confess to not knowing
what, so I asked chatgpt after looking perfunctorily at
"https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html".
Try <https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#EnvironmentFile=>.
Why do people insist on trusting AI, of all things, instead of getting
the info straight from the horse’s mouth?
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>
On 2025-06-12 23:57, Lawrence D'Oliveiro wrote:
<https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#Command%20lines>
In short: complicated.
On 2025-06-12 23:41, Lawrence D'Oliveiro wrote:
On Thu, 12 Jun 2025 12:27:47 +0200, Carlos E.R. wrote:
The dash has a meaning in systemd parlance. I confess to not knowing
what, so I asked chatgpt after looking perfunctorily at
"https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html".
Try
<https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#EnvironmentFile=>.
Why do people insist on trusting AI, of all things, instead of getting
the info straight from the horse’s mouth?
Because it is a complicated reading and I want a fast answer.
On Fri, 13 Jun 2025 00:59:00 +0200, Carlos E.R. wrote:
On 2025-06-12 23:41, Lawrence D'Oliveiro wrote:
On Thu, 12 Jun 2025 12:27:47 +0200, Carlos E.R. wrote:
The dash has a meaning in systemd parlance. I confess to not knowing
what, so I asked chatgpt after looking perfunctorily at
"https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html".
Try
<https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#EnvironmentFile=>.
Why do people insist on trusting AI, of all things, instead of getting
the info straight from the horse’s mouth?
Because it is a complicated reading and I want a fast answer.
And you end up with a possibly inaccurate and misleading answer.
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.
On Thu, 12 Jun 2025 12:27:47 +0200, Carlos E.R. wrote:
The dash has a meaning in systemd parlance. I confess to not knowing
what, so I asked chatgpt after looking perfunctorily at
"https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html".
Try ><https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#EnvironmentFile=>.
Why do people insist on trusting AI, of all things, instead of getting
the info straight from the horse’s mouth?
In the case of systemd docs: Because the AI gets the information without
the ideology and the attitude.
On Fri, 13 Jun 2025 07:29:25 +0200, Marc Haber wrote:
In the case of systemd docs: Because the AI gets the information without
the ideology and the attitude.
Can you give examples from the reference docs that exhibit such things?
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
On Fri, 13 Jun 2025 07:29:25 +0200, Marc Haber wrote:
In the case of systemd docs: Because the AI gets the information
without the ideology and the attitude.
Can you give examples from the reference docs that exhibit such
things?
That would bring me in a bad mood, so no. I remember a systemd man
page about starting a daemon (could have been systemd.service(5))
talking about "modern" daemons that use systemd notify already at a
time when almost NO daemons outside the systemd universe was using
that.
On Fri, 13 Jun 2025 08:48:37 +0200, Marc Haber wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
On Fri, 13 Jun 2025 07:29:25 +0200, Marc Haber wrote:
In the case of systemd docs: Because the AI gets the information
without the ideology and the attitude.
Can you give examples from the reference docs that exhibit such
things?
That would bring me in a bad mood, so no. I remember a systemd man
page about starting a daemon (could have been systemd.service(5))
talking about "modern" daemons that use systemd notify already at a
time when almost NO daemons outside the systemd universe was using
that.
Had a look at ><https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html>.
The only occurrence of the word “modern” is in this paragraph:
Note that PID files should be avoided in modern projects. Use
Type=notify, Type=notify-reload or Type=simple where possible,
which does not require use of PID files to determine the main
process of a service and avoids needless forking.
Is there some issue with the wording of that?
On 2025-06-12 23:41, Lawrence D'Oliveiro wrote:
On Thu, 12 Jun 2025 12:27:47 +0200, Carlos E.R. wrote:
The dash has a meaning in systemd parlance. I confess to not knowingTry
what, so I asked chatgpt after looking perfunctorily at
"https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html".
<https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#EnvironmentFile=>.
Why do people insist on trusting AI, of all things, instead of
getting the info straight from the horse’s mouth?
Because it is a complicated reading and I want a fast answer.
"Carlos E.R." <robin_listas@es.invalid> writes:
On 2025-06-12 23:41, Lawrence D'Oliveiro wrote:
On Thu, 12 Jun 2025 12:27:47 +0200, Carlos E.R. wrote:
The dash has a meaning in systemd parlance. I confess to not knowingTry
what, so I asked chatgpt after looking perfunctorily at
"https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html".
<https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#EnvironmentFile=>.
Why do people insist on trusting AI, of all things, instead of
getting the info straight from the horse’s mouth?
For some reason they believe that if a computer says it, it must be
true.
Because it is a complicated reading and I want a fast answer.
But you presumably don’t care whether it’s a correct answer.
On Fri, 13 Jun 2025 00:59:00 +0200, Carlos E.R. wrote:
On 2025-06-12 23:41, Lawrence D'Oliveiro wrote:
On Thu, 12 Jun 2025 12:27:47 +0200, Carlos E.R. wrote:
The dash has a meaning in systemd parlance. I confess to not knowing
what, so I asked chatgpt after looking perfunctorily at
"https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html".
Try
<https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#EnvironmentFile=>.
Why do people insist on trusting AI, of all things, instead of getting
the info straight from the horse’s mouth?
Because it is a complicated reading and I want a fast answer.
And you end up with a possibly inaccurate and misleading answer.
On 2025-06-13 10:39, Richard Kettlewell wrote:
But you presumably don’t care whether it’s a correct answer.
Well, I do warn where the text comes from.
Lawrence D'Oliveiro <ldo@nz.invalid> wrote at 01:06 this Friday (GMT):
On Fri, 13 Jun 2025 00:59:00 +0200, Carlos E.R. wrote:
On 2025-06-12 23:41, Lawrence D'Oliveiro wrote:
On Thu, 12 Jun 2025 12:27:47 +0200, Carlos E.R. wrote:
The dash has a meaning in systemd parlance. I confess to not knowing >>>>> what, so I asked chatgpt after looking perfunctorily at
"https://www.freedesktop.org/software/systemd/man/latest/ systemd.service.html".
Try
<https://www.freedesktop.org/software/systemd/man/latest/ systemd.exec.html#EnvironmentFile=>.
Why do people insist on trusting AI, of all things, instead of
getting the info straight from the horse’s mouth?
Because it is a complicated reading and I want a fast answer.
And you end up with a possibly inaccurate and misleading answer.
Right, hallucinations and stuff.
On Fri, 13 Jun 2025 13:13:15 +0200, Carlos E.R. wrote:
On 2025-06-13 10:39, Richard Kettlewell wrote:
But you presumably don’t care whether it’s a correct answer.
Well, I do warn where the text comes from.
But then, that just makes you yourself an untrustworthy source of information.
On Fri, 13 Jun 2025 13:13:15 +0200, Carlos E.R. wrote:
On 2025-06-13 10:39, Richard Kettlewell wrote:
But you presumably don’t care whether it’s a correct answer.
Well, I do warn where the text comes from.
But then, that just makes you yourself an untrustworthy source of information.
On 2025-06-14 01:38, Lawrence D'Oliveiro wrote:
On Fri, 13 Jun 2025 13:13:15 +0200, Carlos E.R. wrote:
On 2025-06-13 10:39, Richard Kettlewell wrote:
But you presumably don’t care whether it’s a correct answer.
Well, I do warn where the text comes from.
But then, that just makes you yourself an untrustworthy source of
information.
You do not know.
On Sat, 14 Jun 2025 14:54:01 +0200, Carlos E.R. wrote:
On 2025-06-14 01:38, Lawrence D'Oliveiro wrote:
On Fri, 13 Jun 2025 13:13:15 +0200, Carlos E.R. wrote:
On 2025-06-13 10:39, Richard Kettlewell wrote:
But you presumably don’t care whether it’s a correct answer.
Well, I do warn where the text comes from.
But then, that just makes you yourself an untrustworthy source of
information.
You do not know.
We do now.
On 2025-06-15 01:28, Lawrence D'Oliveiro wrote:
On Sat, 14 Jun 2025 14:54:01 +0200, Carlos E.R. wrote:
On 2025-06-14 01:38, Lawrence D'Oliveiro wrote:
On Fri, 13 Jun 2025 13:13:15 +0200, Carlos E.R. wrote:
On 2025-06-13 10:39, Richard Kettlewell wrote:
But you presumably don’t care whether it’s a correct answer.
Well, I do warn where the text comes from.
But then, that just makes you yourself an untrustworthy source of
information.
You do not know.
We do now.
Nope.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 51:53:25 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,343 |
Posted today: | 1 |