fix(aoe-web): pin TMUX_TMPDIR and KillMode=process
Shells set TMUX_TMPDIR to the runtime dir; the unit did not, so the daemon ran a second tmux server under /tmp. Every boot resumed duplicate agents there, the dashboard diverged from the TUI, and polling the invisible sessions fired an error push per session. Same fix pr-daemon got. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+10
-1
@@ -87,9 +87,18 @@ in
|
|||||||
# is set; --allowed-host is what makes the rebinding gate accept a
|
# is set; --allowed-host is what makes the rebinding gate accept a
|
||||||
# hostname under a wildcard bind (an IP literal needs no flag).
|
# hostname under a wildcard bind (an IP literal needs no flag).
|
||||||
ExecStart = "${aoe}/bin/aoe serve --host 0.0.0.0 --port 8080 --auth none --behind-proxy --allowed-host aoe.n62.casa";
|
ExecStart = "${aoe}/bin/aoe serve --host 0.0.0.0 --port 8080 --auth none --behind-proxy --allowed-host aoe.n62.casa";
|
||||||
Environment = [ "PATH=${toolPath}" ];
|
# TMUX_TMPDIR keeps the daemon on the same tmux server the shell and
|
||||||
|
# TUI use, instead of a second one under /tmp (same bug pr-daemon had).
|
||||||
|
Environment = [
|
||||||
|
"PATH=${toolPath}"
|
||||||
|
"TMUX_TMPDIR=%t"
|
||||||
|
];
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 2;
|
RestartSec = 2;
|
||||||
|
# If this unit boots before any shell, the shared tmux server lands in
|
||||||
|
# its cgroup; the default control-group kill would take every session
|
||||||
|
# down on restart.
|
||||||
|
KillMode = "process";
|
||||||
};
|
};
|
||||||
Install.WantedBy = [ "default.target" ];
|
Install.WantedBy = [ "default.target" ];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user