Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #68707

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

From "Carlos E.R." <robin_listas@es.invalid>
Newsgroups comp.os.linux.misc
Subject Re: Systemd ... Pass CL Params to Pgm ?
Date 2025-06-12 10:07 +0200
Message-ID <seeqhlxg92.ln2@Telcontar.valinor> (permalink)
References <kvSdnUB3_JBBGNf1nZ2dnZfqnPudnZ2d@giganews.com>

Show all headers | View raw


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.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Systemd ... Pass CL Params to Pgm ? c186282 <c186282@nnada.net> - 2025-06-12 03:46 -0400
  Re: Systemd ... Pass CL Params to Pgm ? Richard Kettlewell <invalid@invalid.invalid> - 2025-06-12 09:06 +0100
    Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-12 09:14 +0000
      Re: Systemd ... Pass CL Params to Pgm ? c186282 <c186282@nnada.net> - 2025-06-12 15:04 -0400
        Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-12 23:43 +0200
          Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-12 21:57 +0000
            Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-13 00:58 +0200
              Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-13 01:05 +0000
              Re: Systemd ... Pass CL Params to Pgm ? c186282 <c186282@nnada.net> - 2025-06-12 23:59 -0400
  Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-12 10:07 +0200
    Re: Systemd ... Pass CL Params to Pgm ? The Natural Philosopher <tnp@invalid.invalid> - 2025-06-12 10:58 +0100
      Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-12 12:27 +0200
        Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-12 21:41 +0000
          Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-13 00:59 +0200
            Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-13 01:06 +0000
              Re: Systemd ... Pass CL Params to Pgm ? c186282 <c186282@nnada.net> - 2025-06-12 23:41 -0400
              Re: Systemd ... Pass CL Params to Pgm ? candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-06-13 21:00 +0000
                Re: Systemd ... Pass CL Params to Pgm ? rbowman <bowman@montana.com> - 2025-06-13 23:27 +0000
            Re: Systemd ... Pass CL Params to Pgm ? Richard Kettlewell <invalid@invalid.invalid> - 2025-06-13 09:39 +0100
              Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-13 13:13 +0200
                Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-13 23:38 +0000
                Re: Systemd ... Pass CL Params to Pgm ? c186282 <c186282@nnada.net> - 2025-06-14 01:16 -0400
                Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-14 14:54 +0200
                Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-14 23:28 +0000
                Re: Systemd ... Pass CL Params to Pgm ? "Carlos E.R." <robin_listas@es.invalid> - 2025-06-16 12:24 +0200
                Re: Systemd ... Pass CL Params to Pgm ? c186282 <c186282@nnada.net> - 2025-06-17 01:08 -0400
          Re: Systemd ... Pass CL Params to Pgm ? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-06-13 07:29 +0200
            Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-13 05:36 +0000
              Re: Systemd ... Pass CL Params to Pgm ? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-06-13 08:48 +0200
                Re: Systemd ... Pass CL Params to Pgm ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-06-13 06:53 +0000
                Re: Systemd ... Pass CL Params to Pgm ? Marc Haber <mh+usenetspam1118@zugschl.us> - 2025-06-13 10:05 +0200

csiph-web