OpenPBS 22.05.11 will start but not enable

I searched and did not find a thread on this issue…

I compiled OpenPBS 22.05.11 from source on Rocky 9 and have one issue. openpbs-execution will start normally, but it not enable (for bootup start):

Enabling service fails:

# systemctl enable pbs
Synchronizing state of pbs.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable pbs
Failed to execute /usr/lib/systemd/systemd-sysv-install: No such file or directory

But it will start:

# systemctl start pbs
# systemctl status pbs
● pbs.service - Portable Batch System
     Loaded: loaded (/opt/pbs/libexec/pbs_init.d; disabled; vendor preset: enabled)
     Active: active (running) since Fri 2023-01-27 12:17:30 EST; 45s ago
       Docs: man:pbs(8)
    Process: 11133 ExecStart=/opt/pbs/libexec/pbs_init.d start (code=exited, status=0/SUCCESS)
      Tasks: 2
     Memory: 3.2M
        CPU: 128ms
     CGroup: /system.slice/pbs.service
             └─11176 /opt/pbs/sbin/pbs_mom

Jan 27 12:17:27 usorla7hg4201x systemd[1]: Starting Portable Batch System...
Jan 27 12:17:27 usorla7hg4201x pbs_init.d[11133]: Starting PBS
Jan 27 12:17:30 usorla7hg4201x pbs_init.d[11133]: PBS mom
Jan 27 12:17:30 usorla7hg4201x systemd[1]: Started Portable Batch System.

Strangely, openpbs-server does not have that issue, it enables (and starts) without complaint.

Any insight would be appreciated.

The fix was pretty simple, just remove the SysV init file

# rm /etc/rc.d/init.d/pbs
# # systemctl enable pbs
Created symlink /etc/systemd/system/multi-user.target.wants/pbs.service → /usr/lib/systemd/system/pbs.service.