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

Change-Id: I243f3d8e090d49ca3a1d0a8cf568750b76273c03
This commit is contained in:
Joachim Steiger 2019-05-29 20:16:58 +02:00 committed by laforge
parent 33a3e8779c
commit 293c114629
6 changed files with 42 additions and 0 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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