Bug 50382 - RFE: Means to query from a command if or if not a service will run without systemd running.
Summary: RFE: Means to query from a command if or if not a service will run without sy...
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: Lennart Poettering
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-27 00:41 UTC by oiaohm
Modified: 2013-03-14 03:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description oiaohm 2012-05-27 00:41:43 UTC
When systemd is not running you cannot query with a simple command if apache will or will not be started by systemd.  This will be useful for diagnoses on currently not running cgroup contained version.

So yes something like systemctl but for offline systemd.

If you could query if a service would be started by systemd there is no reason why sys v like init system could not reference this.   So providing some compatibility to other systems that don't run and cannot run systemd.  Also could make administrators life simple turn on service in one place and its on everywhere.
Comment 1 Zbigniew Jedrzejewski-Szmek 2013-02-08 00:39:51 UTC
See also https://bugs.freedesktop.org/show_bug.cgi?id=60398.
Comment 2 Zbigniew Jedrzejewski-Szmek 2013-03-14 03:56:12 UTC
Fixed in http://cgit.freedesktop.org/systemd/systemd/commit/?id=be394c48a7cb.
(Note: --root=/ should also work.)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.