Sujet : Re: Systemd ... Pass CL Params to Pgm ?
De : invalid (at) *nospam* invalid.invalid (Richard Kettlewell)
Groupes : comp.os.linux.miscDate : 12. Jun 2025, 09:06:36
Autres entêtes
Organisation : terraraq NNTP server
Message-ID : <wwv4iwlfkoj.fsf@LkoBDZeT.terraraq.uk>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
c186282 <
c186282@nnada.net> writes:
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 ???
Nobody is going to be able to debug unit files and programs they can’t
see.
Have a look at
https://www.freedesktop.org/software/systemd/man/latest/systemd.service.htmlin particular the description of ExecStart and the Command Lines section.
-- https://www.greenend.org.uk/rjk/