17 lines
662 B
Desktop File
17 lines
662 B
Desktop File
# Claude Code, in the background, controlled from claude.ai/code or the Claude app (Remote Control).
|
|
# Works in Claude's home. Started by claude-remote.path once Claude is logged in.
|
|
[Unit]
|
|
Description=Claude Code Remote Control
|
|
Wants=network-online.target user@1000.service
|
|
After=network-online.target user@1000.service agent-boot.service
|
|
|
|
[Service]
|
|
User=claude
|
|
WorkingDirectory=~
|
|
# In user.slice, so systemd-oomd kills it (or Claude's containers), not the system (user.slice.d).
|
|
Slice=user.slice
|
|
Environment=CLAUDE_CONFIG_DIR=/var/lib/agent/claude XDG_RUNTIME_DIR=/run/user/1000
|
|
ExecStart=/usr/bin/claude remote-control --name %H
|
|
Restart=always
|
|
RestartSec=10s
|