Skip to content

Commit

Permalink
Update docker_container_check.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
gymbombom committed May 3, 2020
1 parent ff57f52 commit 9a159ad
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Docker/shell/docker_container_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ function vsftpd_chk()
PID=`docker exec vsftpd ps -ef | grep vsftpd | grep -v grep | awk '{print $1}'`;

if [ -z $PID ];then
# docker exec vsftpd nohup /usr/sbin/vsftpd /home/vsftpd/share/conf/vsftpd.conf > /home/vsftpd/share/logs/vsftpd.log &;
echo "develomenting..."
docker exec -ti vsftpd /bin/ash -c 'nohup /usr/sbin/vsftpd /home/vsftpd/share/conf/vsftpd.conf >> /home/vsftpd/share/logs/vsftpd.log &> output & sleep 1';
fi
}

Expand Down Expand Up @@ -42,7 +41,7 @@ function node_kgs_chk()
PID=`docker exec node_kgs ps -ef | grep express.js | grep -v grep | awk '{print $1}'`;

if [ -z $PID ];then
docker exec node_kgs /home/node_kgs/src/shell/nodestart.sh
docker exec node_kgs /home/node_kgs/share/src/shell/nodestart.sh
fi
}

Expand Down Expand Up @@ -135,8 +134,8 @@ function snmpd_chk()

vsftpd_chk
transmission_chk
node_kgs_chk
svn_chk
git_chk
#node_kgs_chk
#svn_chk
#git_chk
#multi_transmission_chk
#snmpd_chk
#snmpd_chk

0 comments on commit 9a159ad

Please sign in to comment.