Previous topic

Grid Configuration

Next topic

Application aliases

This Page

Creating a systemd config for a Stormancer server

[Unit]
Description=Stormancer Server
After=network-online.target
Wants=elasticsearch.service

[Service]
Type=simple

User=root

# Needed to bind to ports <1024 as non-root
AmbientCapabilities=CAP_NET_BIND_SERVICE

ExecStart=/usr/bin/dotnet tool run stormancer start --global
WorkingDirectory=/home/stormancer/publish

Restart=on-failure

TimeoutStopSec=30

[Install]
WantedBy=multi-user.target

In this config:

  • We use root as the user for simplicity. In production, create an user with access to dotnet and the stormancer config directory.

  • The stormancer grid config is located in /home/stormancer/publish

  • The stormancer grid uses the default.json config file. it’s possible to use another config by adding -c config.json to the command.