summaryrefslogtreecommitdiff
path: root/share/systemd
diff options
context:
space:
mode:
authorinfo@mode42.com <info@mode42.com>2026-08-07 18:25:13 +0000
committerinfo@mode42.com <info@mode42.com>2026-08-07 18:25:13 +0000
commit04d965d67a7264a1c7c211494aebda1953df7603 (patch)
tree0ebd700a6e219f84a26a656f4bee8778bc75da7b /share/systemd
Initial push
Diffstat (limited to 'share/systemd')
-rw-r--r--share/systemd/README.md9
-rw-r--r--share/systemd/max25d.service32
2 files changed, 41 insertions, 0 deletions
diff --git a/share/systemd/README.md b/share/systemd/README.md
new file mode 100644
index 0000000..db812b8
--- /dev/null
+++ b/share/systemd/README.md
@@ -0,0 +1,9 @@
+# systemd units (product)
+
+| Unit | Role |
+|------|------|
+| `max25d.service` | Product max25d (optional example) |
+
+Experimental orch units are **not** shipped in this freigegeben tree.
+
+Install example: copy to `/etc/systemd/system/`, adjust `WorkingDirectory` / `ExecStart` / `Environment` to the site PREFIX and `./local/` INI (never commit secrets).
diff --git a/share/systemd/max25d.service b/share/systemd/max25d.service
new file mode 100644
index 0000000..b2118a0
--- /dev/null
+++ b/share/systemd/max25d.service
@@ -0,0 +1,32 @@
+# max25d — example systemd unit (adjust paths to site install)
+# Install: sudo cp share/systemd/max25d.service /etc/systemd/system/
+# sudo systemctl daemon-reload && sudo systemctl enable --now max25d.service
+#
+# Site INI — operator overrides via drop-in or EnvironmentFile under ./local/
+# (never commit secrets).
+
+[Unit]
+Description=MAX25-Stack max25d control plane
+Documentation=https://github.com/ngteq/MAX25-Stack
+After=network-online.target multi-user.target
+Wants=network-online.target
+ConditionPathExists=/usr/local/bin/run-max25d
+
+[Service]
+Type=simple
+User=root
+Group=root
+WorkingDirectory=/usr/local
+Environment=MAX25_INI=/etc/max25/max25d.ini
+EnvironmentFile=-/etc/max25/max25d.env
+ExecStart=/usr/local/bin/run-max25d -c ${MAX25_INI}
+Restart=on-failure
+RestartSec=5
+TimeoutStartSec=120
+KillMode=control-group
+StandardOutput=journal
+StandardError=journal
+SyslogIdentifier=max25d
+
+[Install]
+WantedBy=multi-user.target
git clone -b <branch> https://cgit.mode42.com/<repo>.git
git clone -b <branch> git://cgit.mode42.com/<repo>.git

info@mode42.com