feat: 自启动与自恢复机制
This commit is contained in:
16
scripts/boot/systemd/blitz-watchdog.service.in
Normal file
16
scripts/boot/systemd/blitz-watchdog.service.in
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Blitz robot health watchdog
|
||||
After=blitz-b-side-omnid.service blitz-ros-receiver.service
|
||||
Wants=blitz-b-side-omnid.service blitz-ros-receiver.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStartPre=/bin/bash @OMNISOCKETGO_ROOT@/scripts/boot/prepare-runtime-dir.sh
|
||||
ExecStart=/bin/bash @OMNISOCKETGO_ROOT@/scripts/boot/blitz-watchdog.sh
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StandardOutput=append:@BLITZ_LOG_FILE@
|
||||
StandardError=append:@BLITZ_LOG_FILE@
|
||||
|
||||
[Install]
|
||||
WantedBy=blitz-robot.target
|
||||
Reference in New Issue
Block a user