From 0b89b6eb8a0d8d7d69d00ce66a87c9e1de66915a Mon Sep 17 00:00:00 2001 From: "Christopher R. Nelson" Date: Sun, 1 Nov 2026 01:17:43 -0400 Subject: Build a relx release for running as a systemd service Running the daemon via `rebar3 shell` under systemd exits immediately: stdin is /dev/null, so the interactive shell reads EOF and terminates the VM. Add a relx release (with a prod profile that bundles ERTS) and document running it with `bin/xdg_pipe_menu foreground` instead. Ship a custom vm.args rather than relx's default, which sets a fixed, publicly-known cookie while distribution listens on all interfaces. The node now uses ~/.erlang.cookie, binds distribution to 127.0.0.1, and is named xdg_pipe_menu@localhost so the release script's ping / remote_console / stop can reach it even where the hostname resolves to 127.0.1.1. Co-Authored-By: Claude Opus 5.5 --- config/vm.args | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 config/vm.args (limited to 'config/vm.args') diff --git a/config/vm.args b/config/vm.args new file mode 100644 index 0000000..24183d6 --- /dev/null +++ b/config/vm.args @@ -0,0 +1,10 @@ +## Short node name, so `bin/xdg_pipe_menu remote_console` / `stop` work. +-sname xdg_pipe_menu@localhost + +## No -setcookie: fall back to the per-user random ~/.erlang.cookie +## rather than a fixed, publicly-known cookie. + +## Only accept distribution connections from this machine. +-kernel inet_dist_use_interface {127,0,0,1} + ++C multi_time_warp -- cgit v1.2.3