This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nms-oam/gloam/shell/shutdown.sh
fangshunjian 788b321414 1、修改程序启动读取配置文件,修改node_table表信息
2、添加数据收集脚本,程序启动时主动下发监测脚本,同时修改监测配置文件seq_id
3、修改进程shell命令
2018-12-21 16:55:02 +06:00

30 lines
684 B
Bash

#!/bin/sh
# -----------------------------------------------------------------------------
# Stop Script for the NMS Server
#
# -----------------------------------------------------------------------------
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
PRGDIR=`dirname "$PRG"`
EXECUTABLE=oam.sh
if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
echo "Cannot find $PRGDIR/$EXECUTABLE"
echo "This file is needed to run this program"
exit 1
fi
exec "$PRGDIR"/"$EXECUTABLE" stop "$@"