safesight-edge/scripts/systemd/rk3588-agent.service

41 lines
899 B
Desktop File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[Unit]
Description=RK3588 Agent (Management API)
Documentation=https://github.com/your-org/OrangePi3588Media
After=network-online.target media-server.service
Wants=network-online.target
# 如果 agent 依赖 media-server取消下面这行的注释
# Requires=media-server.service
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/rk3588-agent
ExecStart=/opt/rk3588-agent/rk3588-agent --config /opt/rk3588-agent/agent.config.json
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
KillSignal=SIGTERM
TimeoutStopSec=30
Restart=always
RestartSec=2
StartLimitInterval=60s
StartLimitBurst=5
# 资源限制
LimitNOFILE=65535
LimitNPROC=4096
# 日志输出
StandardOutput=journal
StandardError=journal
SyslogIdentifier=rk3588-agent
# 安全设置
# NoNewPrivileges=true
# ProtectSystem=strict
# ProtectHome=true
# ReadWritePaths=/opt/rk3588-agent
[Install]
WantedBy=multi-user.target