aliyunpan/docker/sync/health_check.sh

14 lines
161 B
Bash
Raw Normal View History

2022-06-16 13:47:01 +08:00
#!/bin/sh
# 检查aliyunpan进程是否存在
ps | awk '{print $4}' | grep aliyunpan
if [ $? == 0 ]
then
echo $?
exit 0
else
echo $?
exit 1
fi