Cannot activate service in Rocky 8.6

Hi,

We have problems installing and rpm package that on Centos worked perfectly so we don’t know if the problem is more service or rpm packages in Rocky related. any help is much appreciated

We are installing an rpm package that copies a service (and other files) into the /usr/lib/systemd/system/ServiceName.service
but when we check using the systemctl status ServiceName.service

we get

Loaded: loaded  (/usr/lib/systemd/system/ServiceName.service; disable; vendor preset disabled)
Active: failed (Result: exit-code) since Tue 2022-11-29)
MAIN PID:1826 (code = exited, status=203/EXEC)

systemd[1]: ServiceName.service: Service RestartSec=100ms expired, scheduling restart.
systemd[1]: ServiceName.service: Scheduled restart job, restart counter is at 5.
systemd[1]: Stopped
systemd[1]: ServiceName.service: Start request repeated too quickly
systemd[1]: ServiceName.service: Service RestartSec=100ms expired, scheduling restart.
systemd[1]: ServiceName.service: Failed with result 'exit-code'.
systemd[1]: Failed to start

203/EXEC is likely saying that the process you’re trying to start (on ExecStart) is not executable. If this is a custom package, you will need to make sure that the binaries/scripts/etc that are going to be executed through systemd have the executable bit set.