| Summary: | RFE: Support checking of status via SysV initscript's status action | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Lukas Zapletal <lzap> |
| Component: | systemd | Assignee: | systemd-maint |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | johannbg, johannbg, lpoetter, metherid, mschmidt, notting, plautrba, systemd-maint |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-29 15:24:43 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 752863, 784611 | ||
|
Description
Lukas Zapletal
2011-11-15 13:44:22 UTC
This is not currently supported. systemd never asks the service about its status. It assumes the status can always be inferred from the existence of processes in the cgroup and the liveness of the process with the main PID. In a discussion with Kay we concluded that we might add support for "ExecStatus=..." for this purpose. Not primarily for the benefit of native units, but for improved compatibility with SysV. For SysV initscripts ExecStatus would be "/etc/rc.d/init.d/$service status". We dismissed the idea of supporting multiple pidfiles (PIDFilesDir=...) because it would be messy and less generic. There are some expected difficulties. Currently systemd assumes it always knows the status of all services. For services using ExecStatus= this will not be possible. We need to check what breaks. And systemd definitely won't be able to act as a supervisor for these services. We need to carefully decide how far we need to go with sysv compat here. Calling out to init scripts to query the status provides on one hand greater compatibility, but is also a big step backwards to require that. And more impotantly, we will be unable to supervise services, which is one of the main goals of systemd. How would we enable ExecStatus=? We surely do not want do that for all sysv scripts. Fedora does not allow init scripts in packages anymore, and requires native service files. There is a FESCO feature that might block all such packages from the distro. I personally would be fine if we do not support that at all and require the very few (rather strange) cases to convert to the foo@.service instantiated model. We required the same for the pretty complex NFS script case. So I tend to require converting of the script logic instead of enhancing systemd with something that is against the basic design. From my pov this should be closed as WONTFIX... |