Re: Systemd ... Pass CL Params to Pgm ?

Liste des GroupesRevenir à ol misc 
Sujet : Re: Systemd ... Pass CL Params to Pgm ?
De : robin_listas (at) *nospam* es.invalid (Carlos E.R.)
Groupes : comp.os.linux.misc
Date : 12. Jun 2025, 09:07:24
Autres entêtes
Message-ID : <seeqhlxg92.ln2@Telcontar.valinor>
References : 1
User-Agent : Mozilla Thunderbird
On 2025-06-12 09:46, c186282 wrote:
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.
I have looked at how "spamd" is started. It is a Perl script.
[Service]
Type=forking
PIDFile=/run/spamd.pid
ExecStartPre=/bin/bash -c "sa-update || true"
EnvironmentFile=-/etc/sysconfig/spamd
ExecStart=/usr/sbin/spamd $SPAMD_ARGS -r /run/spamd.pid
ExecReload=/usr/bin/kill -HUP $MAINPID
No quotes.
You can look at more examples in your system.
--
Cheers, Carlos.

Date Sujet#  Auteur
12 Jun 25 * Systemd ... Pass CL Params to Pgm ?31c186282
12 Jun 25 +* Re: Systemd ... Pass CL Params to Pgm ?8Richard Kettlewell
12 Jun 25 i`* Re: Systemd ... Pass CL Params to Pgm ?7Lawrence D'Oliveiro
12 Jun 25 i `* Re: Systemd ... Pass CL Params to Pgm ?6c186282
12 Jun 25 i  `* Re: Systemd ... Pass CL Params to Pgm ?5Carlos E.R.
12 Jun 25 i   `* Re: Systemd ... Pass CL Params to Pgm ?4Lawrence D'Oliveiro
12 Jun 25 i    `* Re: Systemd ... Pass CL Params to Pgm ?3Carlos E.R.
13 Jun 25 i     +- Re: Systemd ... Pass CL Params to Pgm ?1Lawrence D'Oliveiro
13 Jun 25 i     `- Re: Systemd ... Pass CL Params to Pgm ?1c186282
12 Jun 25 `* Re: Systemd ... Pass CL Params to Pgm ?22Carlos E.R.
12 Jun 25  `* Re: Systemd ... Pass CL Params to Pgm ?21The Natural Philosopher
12 Jun 25   `* Re: Systemd ... Pass CL Params to Pgm ?20Carlos E.R.
12 Jun 25    `* Re: Systemd ... Pass CL Params to Pgm ?19Lawrence D'Oliveiro
12 Jun 25     +* Re: Systemd ... Pass CL Params to Pgm ?13Carlos E.R.
13 Jun 25     i+* Re: Systemd ... Pass CL Params to Pgm ?4Lawrence D'Oliveiro
13 Jun 25     ii+- Re: Systemd ... Pass CL Params to Pgm ?1c186282
13 Jun 25     ii`* Re: Systemd ... Pass CL Params to Pgm ?2candycanearter07
14 Jun 25     ii `- Re: Systemd ... Pass CL Params to Pgm ?1rbowman
13 Jun 25     i`* Re: Systemd ... Pass CL Params to Pgm ?8Richard Kettlewell
13 Jun 25     i `* Re: Systemd ... Pass CL Params to Pgm ?7Carlos E.R.
14 Jun 25     i  `* Re: Systemd ... Pass CL Params to Pgm ?6Lawrence D'Oliveiro
14 Jun 25     i   +- Re: Systemd ... Pass CL Params to Pgm ?1c186282
14 Jun 25     i   `* Re: Systemd ... Pass CL Params to Pgm ?4Carlos E.R.
15 Jun 25     i    `* Re: Systemd ... Pass CL Params to Pgm ?3Lawrence D'Oliveiro
16 Jun 25     i     `* Re: Systemd ... Pass CL Params to Pgm ?2Carlos E.R.
17 Jun 25     i      `- Re: Systemd ... Pass CL Params to Pgm ?1c186282
13 Jun 25     `* Re: Systemd ... Pass CL Params to Pgm ?5Marc Haber
13 Jun 25      `* Re: Systemd ... Pass CL Params to Pgm ?4Lawrence D'Oliveiro
13 Jun 25       `* Re: Systemd ... Pass CL Params to Pgm ?3Marc Haber
13 Jun 25        `* Re: Systemd ... Pass CL Params to Pgm ?2Lawrence D'Oliveiro
13 Jun 25         `- Re: Systemd ... Pass CL Params to Pgm ?1Marc Haber

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal