[Unit]
Description=agent-memory service
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=0

[Service]
Type=simple
User=player
Group=player
WorkingDirectory=/home/player/agent-memory
ExecStart=/usr/bin/java -jar /home/player/agent-memory/agent-gpt-memory.jar --spring.config.location=optional:file:/home/player/agent-memory/app.properties
Restart=always
RestartSec=3
TimeoutStopSec=20
KillMode=control-group
LimitNOFILE=65535
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=read-only
ReadWritePaths=/home/player/agent-memory/data /home/player/agent-memory/logs

[Install]
WantedBy=multi-user.target
