#!/bin/sh
#
# Things to do when group membership changes.  This script is run by
# group_change_d whenever nodes are added or removed from groups.
# It's also run on startup to deal with the initial group membership.
#

/etc/mcp/scripts/syslogconf.py /etc/mcp/templates/syslog.conf /etc/mcp/override/syslog.conf /etc/syslog.conf
if [ -e /var/run/syslog.pid ]; then
        /bin/kill -HUP `cat /var/run/syslog.pid`;
fi

# Re-generate /etc/hosts.
/etc/mcp/scripts/hostupdate.py /etc/hosts

# Update ntp.conf in case IP addresses in the cluster have changed.
/etc/mcp/scripts/ntpd.py /etc/mcp/templates/ntp.conf /etc/ntp.conf

