Wednesday, June 16, 2010

how to crontab FlexLM autostart server (Cadence license server start at reboot)

This was done in Mandriva:

#> cd /var/spool/cron
#> mkdir reboot
#> vi /etc/crontab

# edit the crontab as folow:
02 4 * * * root nice -n 19 run-parts --report /etc/cron.daily
etc. ... other 2 lines like the above
# here add this line
@reboot root nice -n 19 run-parts --report /var/spool/cron/reboot

# exit the vi

in directory /var/spool/cron/reboot create a executable script that start the Cadence server (don't forget, chmod a+x your_script)

Example: of "cadsrv" file placed in /var/spool/cron/reboot
#> cat cadsrv


cd /flexlm/
./lmgrd -c cadence.dat -l lic.log
# end of the script

as root:
service crond start
chkconfig crond on

NOTE: now after reboot the Cadence license server should start automaticaly

Uff, my administrator life become more confortable, thank you :)

No comments:

Post a Comment