Currently this works only via
a hack with the following two scripts:
/usr/local/bin/start_x1a_mot_server:
#!/bin/bash --login
if ! ps -C x1a_mot_server; then
export LD_LIBRARY_PATH/usr/local/epics/lib/linux-x86
/usr/local/bin/x1a_mot_server &
fi
/usr/local/bin/delay_x1a_mot_server:
#!/bin/bash
sleep 60
sudo -u micros /usr/local/bin/start_x1a_mot_server &
In /etc/rc.d/boot.local we then have to call the delay script instead of
starting x1a_mot_server directly. This is necessary because the PowerDAQ driver is not
loaded yet at execution of /etc/rc.d/boot.local.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.