Blame SOURCES/rt-setup.systemd

876737
#!/bin/sh
876737
876737
on_rt () {
876737
    if [ -f /sys/kernel/realtime ]; then
876737
        return 0
876737
    fi
876737
    return 1
876737
}
876737
876737
prog="rt-setup"
876737
876737
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
876737
876737
# is this a rhel-rt kernel?
876737
if ! on_rt; then
876737
    echo "Not running on a RHEL-RT kernel!"
876737
    exit 0
876737
fi
876737
876737
# make sure that cpusets are mounted
876737
if ! grep cpuset /proc/mounts >/dev/null 2>&1; then 
876737
    echo "cpusets not mounted!"
876737
    exit 2
876737
fi
876737
876737
# if not running, start it up here, usually something like "daemon $exec"
876737
if [ "$SLUB_CPU_PARTIAL" == "off" ]; then
876737
    slub_cpu_partial_off
876737
    slub_retval=$?
876737
else
876737
    slub_retval=0
876737
fi
876737
876737
exit $slub_retval
876737