add: 打包脚本

This commit is contained in:
TsMask
2024-03-19 16:46:48 +08:00
parent 93754d1c1d
commit 2c6c3ab756
360 changed files with 39437 additions and 62 deletions

8
build/misc/checkproc.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
process_name="restagent"
if ! pgrep -x "$process_name" >/dev/null; then
echo "$process_name is not running. Restarting..."
systemctl restart keepalived
fi