jdan
asked on
cron script needed to restart vsftpd if it is not running
Hi,
Anybody have a script to check that vsftpd is running and start it if it is not? I need to put such a script in cron to make sure my ftp service is always up (will check every 10 minutes).
Thanks
Anybody have a script to check that vsftpd is running and start it if it is not? I need to put such a script in cron to make sure my ftp service is always up (will check every 10 minutes).
Thanks
I meant this, sorry:
ps -a|grep -q vsftpd||vsftpd &
ps -a|grep -q vsftpd||vsftpd &
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, that is just what i was looking for.
possibly you'll need to include the path of vsftpd and maybe the others if it's run from cron