Bug 50382

Summary: RFE: Means to query from a command if or if not a service will run without systemd running.
Product: systemd Reporter: oiaohm
Component: generalAssignee: Lennart Poettering <lennart>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.