- scripts/boot-heal/boot-heal.sh — 开机自愈主脚本 - scripts/boot-heal/guanghulab-boot-heal.service — systemd服务单元 功能: 检测IP变化/拉起Forgejo+Nginx+Runner/恢复PM2进程/检查SSL/输出健康报告
15 lines
351 B
Desktop File
15 lines
351 B
Desktop File
[Unit]
|
|
Description=光湖 · 开机自愈 (GuanghuLab Boot Heal)
|
|
After=network-online.target forgejo.service nginx.service
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/bin/bash /data/guanghulab/repo/scripts/boot-heal/boot-heal.sh
|
|
RemainAfterExit=yes
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|