commit | 240b43f3f6316cfb4b92270467d9cb3b5867fa73 | [log] [tgz] |
---|---|---|
author | Oliver Smith <osmith@sysmocom.de> | Fri May 10 14:41:21 2024 +0200 |
committer | Oliver Smith <osmith@sysmocom.de> | Fri May 10 14:47:27 2024 +0200 |
tree | 5c187cce15b15542ad907f7e07c01f032f01c016 | |
parent | e9c2b1ddaa2cc9eba23e8b2285a6691ba795bdf6 [diff] |
contrib/systemd: run as osmocom user Run the systemd service as osmocom user and group instead of root. Set the StateDirectory and WorkingDirectory like we have it in other Osmocom service files. Remove the ExecStartPre mkdir, as the directory now gets created by postinst. Related: OS#4107 Change-Id: I2c0c7f4b98300b3b0bb5b95013b51b6b60625b95
This project implements a proxy translating Diameter into GSUP, hence allowing Diameter clients connecting to GSUP server. This allows, for instance, using OsmoHLR as an HSS used by 4G/5G nodes.
Install erlang and rebar3 packages (not "rebar", that's version 2! You may need to compile it from source in some distros).
$ rebar3 compile $ rebar3 escriptize
Unit tests can be run this way:
$ rebar3 eunit
Once osmo_dia2gsup is built, you can start it this way:
$ rebar3 shell
Passing a config file:
$ rebar3 shell --config ./examples/sys.config
Running it as an escript:
$ rebar3 escriptize $ ERL_FLAGS='-config ./examples/sys.config' _build/default/bin/osmo-dia2gsup
rebar3 release