标签:emc star sftp centos7 pid log cron pre .sh
mkdir -p /home/lee/crontab
#!/bin/bash
if [ ! -f /run/lib/ngrok.pid ] ; then
echo "`date ‘+%F %T‘`:‘ngrok‘停止工作" >> /var/log/crontab/crontab.log
/usr/bin/systemctl start vsftpd
fi
mkdir -p /var/log/crontab
* * * * * /bin/bash /home/lee/crontab/ngrok.sh
标签:emc star sftp centos7 pid log cron pre .sh
原文地址:http://blog.51cto.com/12173069/2129222