Tailwatchd failed

If you are receiving the tailwatchd failed email, check to make sure all the components under tailwatchd are selected; Eximstats, ChkServd , Antirelayd & cPBandwd. You can check this by
/usr/local/cpanel/libexec/tailwatchd --status

Also make sure you check the tailwatchd logs for the failure reasons:

tail /usr/local/cpanel/logs/tailwatchd_log

Then restart the Cpanel service using /etc/init.d/cpanel restart If this does not resolve your issue, you can try running a UPCP force. In addition, running a /scripts/checkperlmodules has repaired this in the past.

Bulk updating DNS zone files

DNS zone files are refreshed by increasing the serial number in the format yyyymmddXX
(e.g 2011070501 eg. 5th July, 2011 and serial number is 01).

In case all of the DNS zone files on the server need to be refreshed, we can increment the serial number, lower the TTLs and reloading the zone files, in one shot:

(A one liner for changing the TTLs of all domains in /var/named to 300, updates the serials to yyyyddmmhh, then reloads the zones)

for i in `grep TTL /var/named/* |grep -v minimum |grep -v 'named\.' |grep -v ns |cut -d ":" -f 2 |cut -d " " -f 2 |grep -v TTL`; do sed -i -e 's#$i#300#g' /var/named/*.db ;done; for i in `grep '[0-9]\{6,\}' /var/named/* |grep serial|cut -d ":" -f 2|cut -d ";" -f 1 | awk '{print $1}'`; do sed -i -e "s#$i#`date +%Y%d%m%H`#g" /var/named/*.db; done;for i in `ls /var/named/ |grep .db|cut -d "." -f 1,2`;do rndc reload $i;done

or

sed -i -e 's/14400/300/g' -e 's/86400/300/g' -e "s/[0-9]\{10\}/`date +%Y%m%d%H`/g" /var/named/*.db
/etc/init.d/named restart

all set…

Chromium Dual View

Just a quick update today on an old chromium tweak which I have found useful. If you are using chromium and need a dual view, you can add this as a bookmark to accomplish that

javascript:A14nH=location.href;L3f7=prompt('Choose%20File%201',A14nH);R1Gh7=prompt('Choose%20File%202',L3f7);if(L3f7&&R1Gh7){Fr4Q='\n';Fr4Q+='\n';Fr4Q+='';with(document){write(Fr4Q);void(close())}}else{void(null)}

Once the bookmark is activated, it will ask what link you would like in the first window, and then ask what link in the second. Told you it was a little thing 🙂