I'm moving an in-house application from RHEL6 to RHEL7 servers.
I read you should still be able to use
chkconfig
and service
commands to install start/stop scripts, even if they have now changed to systemd boot-up:
Although you can still use the service and chkconfig commands to start/stop and enable/disable services, respectively, they are not 100% compatible with the RHEL 7 systemctl command ... ( https://access.redhat.com/articles/754933 )
I follow the RHEL6 procedure (chkconfig --add myscript; chkconfig myscript on
) and get it working, so you can manually do:
sudo service myscript start
sudo service myscript stop
This works fine.
But what is not working is that the application should auto-start when you reboot the Linux-server. The start-script never gets invoked after reboot
.
Is this one of the "incompatibilities" under RHEL7? Or is there a way to fix this, too?
Not able to figure this out....
we still have a mix of RHEL6 and RHEL7 servers, so would prefer if I can continue the chkconfig
solution, for now.