(9 October 2012)
This is for CentOS.
Set up root's .hgrc
Set up /etc/.hgignore
prelink.cache
blkid/blkid.tab*
modprobe.conf~
rc.d/*/*
Initial commit:
[root@sawmill ~]# cd /etc
[root@sawmill etc]# hg init .
[root@sawmill etc]# hg status | awk '{print $2}' | xargs hg add
[noise]
[root@sawmill etc]# hg commit -m "Initial commit"
I set up a cron job to check that uncommitted changes are not piling up:
#!/bin/bash
(
for i in /etc /var/named ; do
cd $i
echo -- Checking: $i
hg status
done
) | mail -s "$HOSTNAME conf report" me@mysystem