初始化项目

This commit is contained in:
BBIT-Kai
2026-05-26 13:53:23 +08:00
commit 7e803e2cdb
27 changed files with 1820 additions and 0 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