Bug 1004748 - service script does not handle upstart jobs
service script does not handle upstart jobs
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: initscripts (Show other bugs)
All Linux
unspecified Severity unspecified
: rc
: ---
Assigned To: Lukáš Nykrýn
Depends On:
  Show dependency treegraph
Reported: 2013-09-05 08:01 EDT by Michael Gliwinski
Modified: 2016-11-25 08:04 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-09-10 04:54:09 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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

  None (edit)
Description Michael Gliwinski 2013-09-05 08:01:05 EDT
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):

How reproducible:

Steps to Reproduce:
1. sudo service prefdm status

Actual results:
prefdm: unrecognized service

Expected results:
prefdm stop/waiting


prefdm start/running, process ...

Additional info:
A similar change has been made to the script in Debian and Ubuntu:
and specifically
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 04:54:09 EDT
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.