agent-manager.service 905 B

12345678910111213141516171819202122232425262728293031323334
  1. [Unit]
  2. Description=Agent Manager - Gogs Webhook Server
  3. Documentation=https://github.com/fszontagh/agent-manager
  4. After=network.target
  5. [Service]
  6. Type=simple
  7. User=claude
  8. Group=claude
  9. WorkingDirectory=/home/claude/agent-manager
  10. ExecStart=/usr/bin/node src/index.js
  11. Restart=on-failure
  12. RestartSec=10s
  13. # Environment
  14. Environment=NODE_ENV=production
  15. # Security hardening
  16. NoNewPrivileges=true
  17. PrivateTmp=true
  18. ProtectSystem=full
  19. # Note: Changed from 'strict' to 'full' to allow shell execution from /usr/bin
  20. # 'full' still protects /usr and /boot but allows execution (read-only)
  21. # Note: ProtectHome removed to allow Claude to work with repositories under /home/claude/
  22. # The service runs as 'claude' user which is already restricted to its own home directory
  23. ReadWritePaths=/home/claude
  24. # Logging
  25. StandardOutput=journal
  26. StandardError=journal
  27. SyslogIdentifier=agent-manager
  28. [Install]
  29. WantedBy=multi-user.target