[Unit]
Description=3588AdminBackend Service
Documentation=https://github.com/your-org/3588AdminBackend
After=network.target network-online.target
Wants=network-online.target

[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/3588admin
ExecStart=/opt/3588admin/bin/managerd /opt/3588admin/config/managerd.json
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
KillSignal=SIGTERM
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

# 资源限制（根据需要调整）
# LimitNOFILE=65535
# LimitNPROC=4096

# 安全设置
NoNewPrivileges=false
ProtectSystem=false
ProtectHome=false

[Install]
WantedBy=multi-user.target
