[Unit]
Description=SDP control plane
Documentation=https://github.com/sdp
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=administrator
WorkingDirectory=/home/administrator
ExecStart=/home/administrator/SDP/bin/control-plane -addr :3452 -data /home/administrator/SDP/data
Restart=always
RestartSec=2s

# Cap memory at 512M. The control plane only holds SQLite + log files;
# anything beyond is a leak.
MemoryMax=512M

# Allow the process to write to its data dir.
ReadWritePaths=/home/administrator/SDP/data

[Install]
WantedBy=multi-user.target
