From b1bd87926098e03ffd983666d0746055122854fd Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 20 Dec 2025 14:59:15 +0100 Subject: systemd: Add service and sysusers configuration files This makes it possible to run the Sia server executable on systemd-based Linux distributions with systemd making system administration easier. Maintaining these files in the source instead of packaging repository was decided since systemd is the dominant init system across Linux distributions and thus not every distribution-specific packaging repo needs to re-invent the wheel. --- systemd/sia-server.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 systemd/sia-server.service (limited to 'systemd/sia-server.service') diff --git a/systemd/sia-server.service b/systemd/sia-server.service new file mode 100644 index 0000000..3738d9a --- /dev/null +++ b/systemd/sia-server.service @@ -0,0 +1,12 @@ +[Unit] +Description=Sia IoT server +After=network.target mosquitto.service +Wants=network.target mosquitto.service + +[Service] +User=sia-server +Group=sia-server +ExecStart=/usr/bin/sia-server -config /etc/sia-server/config.json + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-70-g09d2