[Unit] Description=DevDesk tmux server (persistent Claude Code sessions) Documentation=https://code.lotusguild.org/LotusGuild/devdesk Wants=network-online.target After=network-online.target # Deliberately an unrestricted root shell host: no ProtectSystem/ProtectHome/PrivateTmp. [Service] Type=simple User=root Environment=HOME=/root USER=root LOGNAME=root SHELL=/bin/bash LANG=C.UTF-8 Environment=PATH=/root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin EnvironmentFile=-/etc/devdesk/env EnvironmentFile=-/etc/devdesk/env.local WorkingDirectory=-/root RuntimeDirectory=devdesk RuntimeDirectoryMode=0700 StateDirectory=devdesk StateDirectoryMode=0700 ExecStart=/usr/bin/tmux -u -D -S /run/devdesk/tmux.sock -f /usr/share/devdesk/tmux.conf ExecStartPost=/usr/lib/devdesk/devdesk-tmux-ready # One OOM-killed build inside a session must not take every session down. OOMPolicy=continue KillMode=mixed Restart=on-failure RestartSec=5 TimeoutStopSec=30 [Install] WantedBy=multi-user.target