- Rename binary: managerd → safesightd - Rename config: managerd.json → safesightd.json - Update Go module: 3588AdminBackend → safesight-control - Update all import paths and references - Rename scripts and deploy files
32 lines
669 B
Desktop File
32 lines
669 B
Desktop File
[Unit]
|
|
Description=SafeSight Control Service
|
|
Documentation=https://github.com/your-org/SafeSight Control
|
|
After=network.target network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
WorkingDirectory=/opt/safesightd
|
|
ExecStart=/opt/safesightd/bin/safesightd /opt/safesightd/config/safesightd.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
|