Skip to content

Commit 753dd7b

Browse files
pbjaruclaude
andcommitted
install: wire HYPEMAN_UFFD_METRICS_ADDR into the pager systemd unit
Pair with the new --metrics-addr flag: pass through an env var so per-instance overrides written via EnvironmentFile can opt in without editing the base unit. Empty default keeps the metrics server off for hosts that haven't been configured. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 0f60b1a commit 753dd7b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,9 @@ Environment="HYPEMAN_UFFD_BINARY=${INSTALL_DIR}/${UFFD_PAGER_BINARY_NAME}"
623623
Environment="HYPEMAN_UFFD_DATA_DIR=${DATA_DIR}"
624624
Environment="HYPEMAN_UFFD_VERSION_KEY=%i"
625625
Environment="HYPEMAN_UFFD_CACHE_MAX_BYTES=4294967296"
626+
Environment="HYPEMAN_UFFD_METRICS_ADDR="
626627
EnvironmentFile=-/run/hypeman/uffd/%i.env
627-
ExecStart=/bin/sh -c 'exec "\${HYPEMAN_UFFD_BINARY}" --data-dir "\${HYPEMAN_UFFD_DATA_DIR}" --version-key "\${HYPEMAN_UFFD_VERSION_KEY}" --cache-max-bytes "\${HYPEMAN_UFFD_CACHE_MAX_BYTES}"'
628+
ExecStart=/bin/sh -c 'exec "\${HYPEMAN_UFFD_BINARY}" --data-dir "\${HYPEMAN_UFFD_DATA_DIR}" --version-key "\${HYPEMAN_UFFD_VERSION_KEY}" --cache-max-bytes "\${HYPEMAN_UFFD_CACHE_MAX_BYTES}" --metrics-addr "\${HYPEMAN_UFFD_METRICS_ADDR}"'
628629
Restart=on-failure
629630
RestartSec=5
630631
KillMode=process

0 commit comments

Comments
 (0)