We have big news about Black Friday! SO BIG, in fact that we’re not waiting until Friday to tell everyone. We have decided to make all dedicated and VPS servers available for $1 for the first month on Black Friday only! Get ready to contact sales@unixy.net to get full details on this deal.
**This deal is available for new orders only. This special cannot be applied to upgrades or used for current service.
It’s almost Friday! Here’s something you don’t want to miss. Professor Hans Von Puppet tells exactly how to pronounce UNIXy.
Don’t pass on the opportunity to get awarded two owned licenses ($278 value) and a feature on our blog! Submit your artwork for either the cPanel Varnish Plugin or the DirectAdmin Varnish Plugin to isaig@unixy.net.
This release squashes some bugs affecting domain purging on servers running the plugin, licensing, and other minor issues. It’s available for download. The Varnish plugin can be obtained by visiting this page: http://www.unixy.net/varnish
I am proud to pre-announce our strategic expansion of Web hosting operations in Europe and in North Africa. Taking on this initiative is consistent with our vision to become a world-wide player in the managed server arena. More information will become available soon.
So how does one detect (and eventually prevent) crontab jobs on a server from running every minute? First of all, why would one ever want to control crontab? Long story short, an aggressive cron job can cripple a shared server and affect all users on such paltform.
Here’s a script that crawls cron jobs and reports non-root scripts that run at 5 minute frequency or less. Let’s beautify the code & pack it into a runnable file script:
#!/bin/bash
admin="admin@example.com";
ls -1 /var/spool/cron/| grep -v '^root'|while read u;
do
cat /var/spool/cron/${u}|\
awk '{print $1":"$2":"$3":"$4":"$5":"$NF}'|\
while read entry;
do
mn=$(echo ${entry}|awk -F':' '{print $1}');
if [[ ${mn} == "*" || ${mn} =~ "\*\/[0-5]$" ]];
then
echo "Minutely script found -> ${u}";
fi;
done;
done | mail -s "Minutely script search - report" ${admin};
Be sure to change the email address. You’ll need to set this to run as root as a crontab job every 10 minutes or so.
That’s all folks. Enjoy!