umask 022
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
# Initialize crucial values for the parent, and export them for the children
if [ -z "$PM_PARENT_PID" ]; then
PM_PARENT_PID=$$