MATLAB: How to configure the mdce service to start automatically at boot on Linux/Unix cluster nodes

MATLAB Parallel Server

I have an MDCS cluster comprised of Linux/Unix worker nodes which uses the MathWorks JobManager (mdce service). I would like to configure the mdce service to start automatically when the nodes boot.

Best Answer

To configure the mdce service to start at system boot, follow the appropriate instructions below depending on your OS distribution type:
=====
Debian Platform
=====
On each cluster node, register the mdce service as a known service and
configure it to start automatically at system boot time by following these steps:
1. Create the following link, if it does not already exist:
ln -s matlabroot/toolbox/distcomp/bin/mdce /etc/mdce
2. Create the following link to the boot script file:
ln -s matlabroot/toolbox/distcomp/bin/mdce /etc/init.d/mdce
3. Set the boot script file permissions:
chmod 555 /etc/init.d/mdce
4. Look in /etc/inittab for the default run level. Create a link in the rc
directory associated with that run level. For example, if the run level is 5,
execute these commands:
cd /etc/rc5.d;
ln -s ../init.d/mdce S99MDCE
=====
SUSE Platform
=====
On each cluster node, register the mdce service as a known service and
configure it to start automatically at system boot time by following these steps:
1. Create the following link, if it does not already exist:
ln -s matlabroot/toolbox/distcomp/bin/mdce /etc/mdce
2. Create the following link to the boot script file:
ln -s matlabroot/toolbox/distcomp/bin/mdce /etc/init.d/mdce
3. Set the boot script file permissions:
chmod 555 /etc/init.d/mdce
4. Look in /etc/inittab for the default run level. Create a link in the rc
directory associated with that run level. For example, if the run level is 5,
execute these commands:
cd /etc/init.d/rc5.d;
ln -s ../mdce S99MDCE
=====
Red Hat, Fedora Platform
=====
On each cluster node, register the mdce service as a known service and
configure it to start automatically at system boot time by following these steps:
1. Create the following link, if it does not already exist:
ln -s matlabroot/toolbox/distcomp/bin/mdce /etc/mdce
2. Create the following link to the boot script file:
ln -s matlabroot/toolbox/distcomp/bin/mdce /etc/init.d/mdce
3. Set boot script file permissions:
chmod 555 /etc/init.d/mdce
4. Look in /etc/inittab for the default run level. Create a link in the rc
directory associated with that run level. For example, if the run level is 5,
execute these commands:
cd /etc/rc.d/rc5.d;
ln -s ../../init.d/mdce S99MDCE
=====
Solaris Platform
=====
On each cluster node, register the mdce service as a known service and
configure it to start automatically at system boot time by following these steps:
1. Create the following link, if it does not already exist:
ln -s matlabroot/toolbox/distcomp/bin/mdce /etc/mdce
2. Create the following link to the boot script file:
ln -s matlabroot/toolbox/distcomp/bin/mdce /etc/init.d/mdce
3. Set boot script file permissions:
chmod 555 /etc/init.d/mdce
4. Look in /etc/inittab for the default run level. Create a link in the rc
directory associated with that run level. For example, if the run level is 3,
execute these commands:
cd /etc/rc3.d;
ln -s ../init.d/mdce S99MDCE
Instructions for configuring the mdce service to start at boot are included in the Cluster Setup Instructions found at the link below: