#!/bin/sh sleep 1 if ! /usr/bin/pgrep -x "vsftpd" > /dev/null then echo "FTP is stopped... Restart now!" /usr/sbin/vsftpd /etc/vsftpd.conf & else echo "Working" fi