Cortex init.d Script Failure on Centos7

If you install Cortex from Yum on Centos7 you will most likely receive this error:

/etc/init.d/cortex: line 26: /lib/init/vars.sh: No such file or directory

This is the fix:

perl -pi -e 's|. /lib/init/vars.sh|[ -r /lib/init/vars.sh ] && . /lib/init/vars.sh|g' /etc/init.d/cortex
perl -pi -e 's|. /lib/lsb/init-functions|[ -r /etc/init.d/functions ] && . /etc/init.d/functions|g' /etc/init.d/cortex

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.