[Unit] Description=Osmocom S1 Gateway After=network-online.target Wants=network-online.target [Service] Type=simple Restart=always StateDirectory=osmo-s1gw WorkingDirectory=%S/osmo-s1gw User=osmocom Group=osmocom Environment="HOME=/var/lib/osmo-s1gw" Environment="ERL_FLAGS=-config /etc/osmocom/osmo-s1gw.config" ExecStart=/usr/bin/osmo-s1gw foreground RestartSec=2 [Install] WantedBy=multi-user.target