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/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Jun 13 09:37:18 UTC 2019


laforge has submitted this change and it was merged. ( https://gerrit.osmocom.org/c/osmo-remsim/+/14267 )

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

osmo-remsim-client: add systemd service script template and etc/default configs

Change-Id: I243f3d8e090d49ca3a1d0a8cf568750b76273c03
---
A contrib/etc_default/osmo-remsim-client
A contrib/etc_default/osmo-remsim-client-0
A contrib/etc_default/osmo-remsim-client-1
A contrib/etc_default/osmo-remsim-client-2
A contrib/etc_default/osmo-remsim-client-3
A contrib/systemd/osmo-remsim-client at .service
6 files changed, 42 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/contrib/etc_default/osmo-remsim-client b/contrib/etc_default/osmo-remsim-client
new file mode 100644
index 0000000..b1a2187
--- /dev/null
+++ b/contrib/etc_default/osmo-remsim-client
@@ -0,0 +1,4 @@
+# Default settings for osmo-remsim-client This file is sourced by systemd
+
+# Options to pass to osmo-remsim-client
+GLOBAL_CLIENT_OPTS="-s 10.9.99.10 -V 1d50 -P 4004 -C 1"
diff --git a/contrib/etc_default/osmo-remsim-client-0 b/contrib/etc_default/osmo-remsim-client-0
new file mode 100644
index 0000000..8b70721
--- /dev/null
+++ b/contrib/etc_default/osmo-remsim-client-0
@@ -0,0 +1,6 @@
+# Default settings for osmo-remsim-client This file is sourced by systemd
+
+# Options to pass to osmo-remsim-client
+REMSIM_I="0"
+REMSIM_H="2-1.1"
+REMSIM_c="0"
diff --git a/contrib/etc_default/osmo-remsim-client-1 b/contrib/etc_default/osmo-remsim-client-1
new file mode 100644
index 0000000..519dcb4
--- /dev/null
+++ b/contrib/etc_default/osmo-remsim-client-1
@@ -0,0 +1,6 @@
+# Default settings for osmo-remsim-client This file is sourced by systemd
+
+# Options to pass to osmo-remsim-client
+REMSIM_I="1"
+REMSIM_H="2-1.1"
+REMSIM_c="0"
diff --git a/contrib/etc_default/osmo-remsim-client-2 b/contrib/etc_default/osmo-remsim-client-2
new file mode 100644
index 0000000..3f66289
--- /dev/null
+++ b/contrib/etc_default/osmo-remsim-client-2
@@ -0,0 +1,6 @@
+# Default settings for osmo-remsim-client This file is sourced by systemd
+
+# Options to pass to osmo-remsim-client
+REMSIM_I="0"
+REMSIM_H="2-1.4"
+REMSIM_c="0"
diff --git a/contrib/etc_default/osmo-remsim-client-3 b/contrib/etc_default/osmo-remsim-client-3
new file mode 100644
index 0000000..149af2b
--- /dev/null
+++ b/contrib/etc_default/osmo-remsim-client-3
@@ -0,0 +1,6 @@
+# Default settings for osmo-remsim-client This file is sourced by systemd
+
+# Options to pass to osmo-remsim-client
+REMSIM_I="1"
+REMSIM_H="2-1.4"
+REMSIM_c="0"
diff --git a/contrib/systemd/osmo-remsim-client at .service b/contrib/systemd/osmo-remsim-client at .service
new file mode 100644
index 0000000..738ae4a
--- /dev/null
+++ b/contrib/systemd/osmo-remsim-client at .service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Osmocom Remote SIM Client %i
+
+[Service]
+Type=simple
+Restart=always
+EnvironmentFile=/etc/default/osmo-remsim-client
+EnvironmentFile=/etc/default/osmo-remsim-client-%i
+ExecStart=/usr/bin/osmo-remsim-client-st2 $GLOBAL_CLIENT_OPTS -I $REMSIM_I -H $REMSIM_H -c $REMSIM_c
+RestartSec=2
+
+[Install]
+WantedBy=multi-user.target
+

-- 
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: 3
Gerrit-Owner: roh <jsteiger at sysmocom.de>
Gerrit-Assignee: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: roh <jsteiger at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190613/77d353ae/attachment.htm>


More information about the gerrit-log mailing list