feat: run mnote-web prod under systemd --user with auto-restart

Replace detached spawn with mnote-web-prod.service (Restart=always,
enable + Linger). prod:start installs the unit, writes env/current
symlink, and restarts via systemctl so the gateway survives kills and
logout. Also drop unused std::fs import in web_shell.
This commit is contained in:
Agent Board
2026-07-25 14:56:42 +08:00
parent 262e66b02e
commit 2deaf59f7b
3 changed files with 279 additions and 28 deletions
@@ -39,7 +39,6 @@ use control_plane::UpsertNavigationRecentInput;
use core_protocol::KernelProjectionKind;
use serde::Deserialize;
use serde_json::{json, Value};
use std::fs;
use std::path::{Component, Path as FsPath, PathBuf};
const HEADER_MNOTE_WEB_OWNER: &str = "x-mnote-web-owner";