物联网软件

This commit is contained in:
BBIT-Kai
2026-02-04 14:02:57 +08:00
parent 646e312a4c
commit 1c11f3f06c
28 changed files with 4526 additions and 271 deletions
+31
View File
@@ -0,0 +1,31 @@
[Unit]
Description=Sentinel Updater Service
After=network.target
Wants=network.target
[Service]
Type=simple
# 启动前确保可执行权限
ExecStartPre=/bin/chmod +x /opt/edge/updater
ExecStart=/opt/edge/updater
WorkingDirectory=/opt/edge/
User=root
Group=root
# 崩溃自动拉起
Restart=always
RestartSec=10
# 日志直接进 journalctl
StandardOutput=journal
StandardError=journal
# 可选:限制资源
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target