23 lines
778 B
SYSTEMD
23 lines
778 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=claude rc (Remote Control) server — %i
|
||
|
|
Documentation=man:claude(1)
|
||
|
|
After=network-online.target time-sync.target
|
||
|
|
Wants=network-online.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
# Centrally managed by `claude-rc` (registry: ~/.config/claude-rc/projects).
|
||
|
|
# Direct under systemd (no tmux — a shared tmux server gets wiped). systemd +
|
||
|
|
# Linger give boot-persistence; Restart=always gives crash-recovery. The
|
||
|
|
# claude.ai/code URL lands in the journal: journalctl --user -u claude-rc@%i
|
||
|
|
Type=simple
|
||
|
|
Environment=PATH=%h/.local/bin:%h/.local/share/pnpm:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin
|
||
|
|
ExecStart=%h/.local/bin/claude-rc _run %i
|
||
|
|
Restart=always
|
||
|
|
RestartSec=5
|
||
|
|
StandardOutput=journal
|
||
|
|
StandardError=journal
|
||
|
|
SyslogIdentifier=claude-rc-%i
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=default.target
|