How to get rcnovell-<service> working on RHEL 7.9 and RHEL 8.x

0 Likes

**Note:

/etc/init.d/novell-<service> start/stop/status will work as expected, i.e. redirects to systemctl and requires no changes.




Issue:


NAM On RHEL 7.9 and RHEL 8.x with latest OS patches applied, rcnovell symlink won’t redirect to systemctl.
rcnovell is more of a convenience for sys-admins to start stop and check the status of services in Access Manager on Linux.

 

Cause:

systemd changes on the Linux distro and especially on Red Hat Linux which introduces stringent rules to abide by the best practices. 

 

Effected versions (known so far:

RHEL7.x (with systemd version 219 and higher)

RHEL8.x (with systemd version 239 and higher)




Fix:


1) Take a backup of /etc/init.d/rc.d/functions

 

2) Edit the file /etc/init.d/rc.d/functions and replace the below switch case with the update switch case as described.

------------------------------------------
case "$0" in

    /etc/init.d/*|/etc/rc.d/init.d/*)

        _use_systemctl=1

        ;;

    esac

------------------------------------------



Replace with:

 

-------------------------------------------

case "$0" in

    /etc/init.d/*|/etc/rc.d/init.d/*|/usr/sbin/*)

        _use_systemctl=1

        ;;

    esac

-------------------------------------------

The change is highlighted. 

 


Fix is basically to update the switch case with the path to /usr/sbin/ as that's where our rcnovell symlink reside.

Labels:

How To-Best Practice
Support Tip
Comment List
Anonymous
Related Discussions
Recommended