agent-manager.service 756 B

1234567891011121314151617181920212223242526272829303132
  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=strict
  19. # Note: ProtectHome removed to allow Claude to work with repositories under /home/claude/
  20. # The service runs as 'claude' user which is already restricted to its own home directory
  21. ReadWritePaths=/home/claude
  22. # Logging
  23. StandardOutput=journal
  24. StandardError=journal
  25. SyslogIdentifier=agent-manager
  26. [Install]
  27. WantedBy=multi-user.target