All pastes #329468 Raw Edit

Something

public shellscript v1 · immutable
#329468 ·published 2007-01-26 19:51 UTC
rendered paste body
#!/bin/sh# DrFTPD crontab script###############################################################First save this file and call it drftpd.chk. Next you will have to add the crontab entry. Type crontab -e. This will open the default text editor with the crontab file. Enter the following (with correct path):  */5 * * * * /home/user/drftpd/drftpd.chk >/dev/null 2>&1The */5 at the beginning means check every 5 minutes. You may replace the 5 with other another number if you want (but less than 60). Save and exit and its installed.############################################################################################################################## CONFIGURATION################################################################ DrFTPD directoryDRPATH=/home/drftpd/# Name of the pid fileDRPIDF=master.pid# Name of the executableDRPROG=mastrer.sh# Parameters to pass to the executableDRARGS=""#DRARGS="-debug"################################################################                 DO NOT EDIT ANYTHING BELOW                  ################################################################PATH=/bin:/usr/bin:/usr/local/binDRPID=cd $DRPATHif [ -f $DRPIDF ]then	DRPID=`cat $DRPIDF`	if [ `ps auwx | grep $DRPROG | grep $DRPID | grep -v -c grep` = 1 ]	then		exit		fi	rm -f $DRPIDFfi./$DRPROG $DRARGS