diff options
author | Harald Welte <laforge@osmocom.org> | 2021-11-03 12:48:58 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-11-03 12:50:15 +0100 |
commit | 23198c4e90f1425003d6d592057da93ac3faf779 (patch) | |
tree | dc6fe8cdf361d215dae4cdd0c7c313ae6c4bd3df /contrib | |
parent | df3d01bedcc4e6aa6a6aee2769a3f1cef0942ec0 (diff) |
sim-rest-server: Add example systemd service/unit file
the sim-rest-server is a minimal HTTP/RESTful API for performing
UMTS-AKA against a SIM card inserted in a locally reachable PC/SC
reader. Let's add s systemd service/unit file for people wanting to
run this service from systemd.
Change-Id: I84b390af09d33de2c740898ff3d7d5a90a300588
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/sim-rest-server.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/sim-rest-server.service b/contrib/sim-rest-server.service new file mode 100644 index 0000000..f062611 --- /dev/null +++ b/contrib/sim-rest-server.service @@ -0,0 +1,14 @@ +[Unit] +Description=Osmocom SIM REST server + +[Service] +Type=simple +# we listen to 0.0.0.0, allowing remote, unauthenticated clients to connect from everywhere! +ExecStart=/usr/local/src/pysim/contrib/sim-rest-server.py -H 0.0.0.0 +Restart=always +RestartSec=2 +# this user must be created beforehand; it must have PC/SC access +User=rest + +[Install] +WantedBy=multi-user.target |