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

Change-Id: I243f3d8e090d49ca3a1d0a8cf568750b76273c03
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@.service b/contrib/systemd/osmo-remsim-client@.service
new file mode 100644
index 0000000..738ae4a
--- /dev/null
+++ b/contrib/systemd/osmo-remsim-client@.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
+