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 1004748 - service script does not handle upstart jobs
Summary: service script does not handle upstart jobs
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: initscripts
Version: 6.4
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lukáš Nykrýn
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-05 12:01 UTC by Michael Gliwinski
Modified: 2016-11-25 13:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-10 08:54:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch implementing the requested behaviour (1.39 KB, patch)
2013-09-05 12:01 UTC, Michael Gliwinski
no flags Details | Diff

Description Michael Gliwinski 2013-09-05 12:01:05 UTC
Created attachment 794236 [details]
patch implementing the requested behaviour

Description of problem:
The /sbin/service script only works for services managed via System V style init scripts in /etc/init.d.  It would be very useful if the same interface also worked transparently for upstart jobs in /etc/init (and possibly other init systems in the future).

This applies to custom services, but also to some base services in RHEL.


Version-Release number of selected component (if applicable):
initscripts-9.03.38-1


How reproducible:
always


Steps to Reproduce:
1. sudo service prefdm status

Actual results:
prefdm: unrecognized service


Expected results:
prefdm stop/waiting

or

prefdm start/running, process ...


Additional info:
A similar change has been made to the script in Debian and Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/427277
and specifically
https://launchpadlibrarian.net/31973400/out
Version in Debian (http://packages.debian.org/jessie/sysvinit-utils) also supports systemd.

The attached patch (based on version in Debian) implements the requested behaviour.

Comment 2 Lukáš Nykrýn 2013-09-10 08:54:09 UTC
I really don't like this idea, we don't encourage customers to write their own upstart jobs, there are only few of them in rhel6 and upstarts jobs will not be supported in rhel7. Also there are issues when job and initscript have the same name. 

We have already modified service to work with systemd, but that is a different case, because systemd is handling services with initscripts directly.


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