RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2118300 - /usr/sbin/service uses non-existent path for init scripts
Summary: /usr/sbin/service uses non-existent path for init scripts
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: initscripts
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jan Macku
QA Contact: Daniel Rusek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-15 12:35 UTC by Marko Myllynen
Modified: 2022-11-15 13:22 UTC (History)
2 users (show)

Fixed In Version: initscripts-10.11.5-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 11:23:25 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github fedora-sysv initscripts pull 440 0 None Merged service: Exit when `/etc/init.d` is missing 2022-08-25 07:22:43 UTC
Gitlab redhat/centos-stream/rpms initscripts merge_requests 7 0 None opened 10.11.5 2022-08-25 07:22:43 UTC
Red Hat Issue Tracker RHELPLAN-131094 0 None None None 2022-08-15 12:38:01 UTC
Red Hat Product Errata RHBA-2022:8405 0 None None None 2022-11-15 11:23:27 UTC

Description Marko Myllynen 2022-08-15 12:35:32 UTC
Description of problem:
# grep SERVICEDIR= /usr/sbin/service
SERVICEDIR="/etc/init.d"
# stat /etc/init.d
stat: cannot statx '/etc/init.d': No such file or directory
# stat /etc/rc.d/init.d
  File: /etc/rc.d/init.d
...
# rpm -qf /etc/rc.d/init.d
systemd-250-6.el9_0.x86_64

The symbolic link /etc/init.d -> /etc/rc.d/init.d does not exist on RHEL 9 so /usr/sbin/service should be using /etc/rc.d/init.d instead of /etc/init.d.

Version-Release number of selected component (if applicable):
initscripts-service-10.11.4-1.el9.noarch

Comment 4 Jan Macku 2022-08-25 09:45:06 UTC
In order to shrink down the minimal installation of RHEL, initscripts package isn't installed by default on RHEL9. Since some packages require service command, we have put it into a subpackage.

If you want to use initscripts you now have to install initscripts manually, and they will create a symlink for you.

Comment 8 errata-xmlrpc 2022-11-15 11:23:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (initscripts bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8405


Note You need to log in before you can comment on or make changes to this bug.