The configuration examples were the last mixed-language place: full-reference.conf (425 lines), config.example and prices.conf had German comments. Directives are byte-identical in every file (verified by diffing the non-comment lines against HEAD), each file still parses. web/README.md was German as well. systemd-analyze caught a real bug while checking the unit: StartLimitIntervalSec=0 sat in [Service], where systemd ignores it without a word — so the crash-loop protection was the default five starts in ten seconds, and a router that keeps dying would simply stay dead. It now sits in [Unit] together with StartLimitBurst=0, in packaging/junction.service and in the live unit (systemctl show: both values 0).
37 lines
1.6 KiB
Desktop File
37 lines
1.6 KiB
Desktop File
[Unit]
|
|
# Template for /etc/systemd/system/junction.service (or a copy under
|
|
# ~/.config/systemd/user/). make install only lays down the binary, not the unit:
|
|
# paths and environment files differ per host.
|
|
Description=junction — model router (rules, failover, wake, passthrough)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
# A router in front of the local agents must not be the thing that dies quietly: with
|
|
# Restart=always alone, systemd stops restarting after five starts in ten seconds (the
|
|
# default), and a crash loop leaves the router dead. These two keys belong in [Unit] —
|
|
# in [Service] systemd ignores them without a word.
|
|
StartLimitIntervalSec=0
|
|
StartLimitBurst=0
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=lotherk
|
|
Group=lotherk
|
|
Environment=HOME=/home/lotherk
|
|
# The cloud key lives in Hermes' .env; junction only reads it from the environment
|
|
# and never logs it.
|
|
EnvironmentFile=/home/lotherk/.hermes/.env
|
|
# Upstream keys for ollama, budgets, virtual keys (0600 root)
|
|
EnvironmentFile=-/etc/junction/junction.env
|
|
# The unix control socket lives in /run/junction — /run is tmpfs and empty after every
|
|
# reboot. Without RuntimeDirectory the bind fails with "No such file or directory":
|
|
# junction keeps running and only reports over TCP, while the dashboard (which uses the
|
|
# socket) silently shows nothing. That is exactly what happened once — which is why the
|
|
# line belongs here and not in somebody's memory.
|
|
RuntimeDirectory=junction
|
|
RuntimeDirectoryMode=0750
|
|
ExecStart=/usr/local/bin/junction --config /etc/junction/junction.conf
|
|
Restart=always
|
|
RestartSec=3
|
|
[Install]
|
|
WantedBy=multi-user.target
|