Bug 738077
Summary: | Pid 1 flagged as init not as systemd | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jóhann B. Guðmundsson <johannbg> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 16 | CC: | harald, johannbg, johannbg, kay, lpoetter, metherid, mschmidt, notting, plautrba |
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-03-13 02:37:07 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 784611 |
Description
Jóhann B. Guðmundsson
2011-09-13 20:24:07 UTC
I should mention that running systemctl daemon-reexec correctly relables 1 to systemd The initramfs runs it as "/sbin/init". netstat reads /proc/1/cmdline to get the name. After "systemctl daemon-reexec" it gets a new cmdline. I think 'init' is the right name here. Process 1 is /sbin/init and there is no systemd process in system. Probably f3b6a3edbce43df47374761529dd663c9a39c612 should be reverted or changed to set name 'init'? Personally I've gotten used to and expect systemd to be there. Anyway all personal prefs aside what matters here is that the name stays consistent through out all releases and distributions. So if we go for "init" that change needs to be backported to F15 as well. We actually explicitly set "comm" to "systemd" when initializing, but we do not patch argv[], because that is so ugly to do if the string we patch in is longer than the original one. In generally I think we should probably identify us everyhwere with systemd, not with init. netstat should probably show comm rather than argv[0]. Btw if we are considering fixing this can we fix the broken behaviour of inet and display as well what socket/service is listening on 1/ So the output from netstat goes from udp 0 0 127.0.0.1:69 0.0.0.0:* 1/systemd To udp 0 0 127.0.0.1:69 0.0.0.0:* 1/systemd/tftp Or something similar systemd/tftp.socket or systemd/tftp.service? This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. dracut in F17 will now invoke systemd as systemd, no longer as init. That should fix the issue as we will no always show up under the same name in ps. |