PREIN
/bin/sh
/usr/sbin/groupadd -g 12384 -r -f mpi > /dev/null 2>&1 ||:
/usr/sbin/useradd -u 12384 -g mpi -d /var/lib/mpi -r -s /bin/bash mpi -p "" -m > /dev/null 2>&1 ||:
POSTIN
/bin/sh
STATUS=$(cat /etc/xinetd.d/rsh | grep disable | cut -d "=" -f 2)
if [ $STATUS == "yes" ]; then
echo "Warning !!"
echo "The rsh daemon is disabled in your xinetd config file(/etc/xinetd.d/rsh), please activate it."
fi
echo "Remember that you should create a .rhosts in your home directory."
echo "Look at .rhosts in the doc directory for a sample configuration"
echo "A mpi user has been created, change it's home directory to a network file system with the other nodes"
# automatically set mpi variable
TEST_MPI_ENV=`grep MPI /etc/bashrc`
if [ -z "$TEST_MPI_ENV" ] ; then
echo "# MPI environment" >> /etc/bashrc
echo "MPIRUN_HOME=/usr/bin" >> /etc/bashrc
echo "export MPIRUN_HOME" >> /etc/bashrc
fi
POSTUN
/bin/sh
/usr/share/rpm-helper/del-user mpich $1 mpi