fix: update service names in ops.sh
This commit is contained in:
parent
3d61a925fc
commit
aa9d824ba1
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# RK3588 Media Server 运维脚本
|
||||
# RK3588 Edge Server 运维脚本
|
||||
# 安装后位于 /opt/safesight-edge-server/script/ops.sh
|
||||
#
|
||||
# 用法: sudo ./ops.sh [status|start|stop|restart|logs|hw|ddr-status|ddr-performance|ddr-ondemand|ddr-restore]
|
||||
@ -14,11 +14,11 @@ CYAN='\033[0;36m'
|
||||
NC='\033[0m'
|
||||
|
||||
# 服务名称
|
||||
MEDIA_SERVICE="media-server"
|
||||
AGENT_SERVICE="safesight-agent"
|
||||
MEDIA_SERVICE="safesight-edge-server"
|
||||
AGENT_SERVICE="safesight-edge-agent"
|
||||
|
||||
cmd_status() {
|
||||
echo -e "${BLUE}========== RK3588 Media Server 状态 ==========${NC}"
|
||||
echo -e "${BLUE}========== RK3588 Edge Server 状态 ==========${NC}"
|
||||
echo ""
|
||||
|
||||
# 系统信息
|
||||
@ -36,8 +36,8 @@ cmd_status() {
|
||||
fi
|
||||
echo ""
|
||||
|
||||
# Media Server
|
||||
echo -e "${CYAN}[Media Server]${NC}"
|
||||
# Edge Server
|
||||
echo -e "${CYAN}[Edge Server]${NC}"
|
||||
if systemctl is-active --quiet $MEDIA_SERVICE 2>/dev/null; then
|
||||
echo -e " 状态: ${GREEN}● 运行中${NC}"
|
||||
PID=$(systemctl show --property=MainPID --value $MEDIA_SERVICE 2>/dev/null)
|
||||
@ -54,7 +54,7 @@ cmd_status() {
|
||||
echo ""
|
||||
|
||||
# Agent
|
||||
echo -e "${CYAN}[RK3588 Agent]${NC}"
|
||||
echo -e "${CYAN}[Edge Agent]${NC}"
|
||||
if systemctl is-active --quiet $AGENT_SERVICE 2>/dev/null; then
|
||||
echo -e " 状态: ${GREEN}● 运行中${NC}"
|
||||
echo " 管理界面: http://$(hostname -I | awk '{print $1}'):9100"
|
||||
@ -167,7 +167,7 @@ case "${1:-status}" in
|
||||
cmd_ddr_restore
|
||||
;;
|
||||
*)
|
||||
echo "RK3588 Media Server 运维脚本"
|
||||
echo "RK3588 Edge Server 运维脚本"
|
||||
echo ""
|
||||
echo "用法: sudo $(basename $0) [命令]"
|
||||
echo ""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user