Sujet : Re: Systemd ... Pass CL Params to Pgm ?
De : robin_listas (at) *nospam* es.invalid (Carlos E.R.)
Groupes : comp.os.linux.miscDate : 12. Jun 2025, 22:43:25
Autres entêtes
Message-ID : <t8urhlxip3.ln2@Telcontar.valinor>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
On 2025-06-12 21:04, c186282 wrote:
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"
I don't think you need quotes.
Perhaps not even calling python directly, the script shebang should do it.
According to chatgpt, the correct syntax is:
ExecStart=/usr/bin/python3 /opt/myscripts/myscript.py arg1 arg2 --flag=value
-- Cheers, Carlos.