Change in ...osmo-remsim[master]: osmo-remsim-client: add systemd service script template and etc/defau...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Tue Jun 11 16:46:47 UTC 2019


pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-remsim/+/14267 )

Change subject: osmo-remsim-client: add systemd service script template and etc/default config
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.osmocom.org/#/c/14267/1/contrib/systemd/osmo-remsim-client_.service 
File contrib/systemd/osmo-remsim-client_.service:

https://gerrit.osmocom.org/#/c/14267/1/contrib/systemd/osmo-remsim-client_.service@8 
PS1, Line 8: 2-1.1
> yes - but this is a template to be copied n (number of modems) times and modified to fit the specifi […]
So if I understand correctly, you need to change several parameters per process instance launched and not only the "2-1.1" part, right?

What about using: EnvironmentFile=/etc/default/osmo-remsim-client-%i
And then have /etc/default/osmo-remsim-client-{0..N} files, each defining env variables with different values?
For instance, /etc/default/osmo-remsim-client-0:
REMSIM_H="2-1.1"
REMSIM_C="0"

and then in this sytemd template:
EnvironmentFile=/etc/default/osmo-remsim-client-%i
ExecStart=/usr/bin/osmo-remsim-client-st2 $CLIENT_OPTS -I 0 -H $REMSIM_H -c $REMSIM_C



-- 
To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/14267
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: I243f3d8e090d49ca3a1d0a8cf568750b76273c03
Gerrit-Change-Number: 14267
Gerrit-PatchSet: 1
Gerrit-Owner: roh <jsteiger at sysmocom.de>
Gerrit-Assignee: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: roh <jsteiger at sysmocom.de>
Gerrit-CC: laforge <laforge at gnumonks.org>
Gerrit-CC: pespin <pespin at sysmocom.de>
Gerrit-Comment-Date: Tue, 11 Jun 2019 16:46:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: roh <jsteiger at sysmocom.de>
Comment-In-Reply-To: laforge <laforge at gnumonks.org>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190611/3c190e32/attachment.htm>


More information about the gerrit-log mailing list