Bug 694454
Summary: | Providing native systemd file for upcoming F15 Feature Systemd | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jóhann B. Guðmundsson <johannbg> | ||||||
Component: | ypbind | Assignee: | Honza Horak <hhorak> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | rawhide | CC: | daniel.christopher.spain, hhorak, kklic, lpoetter | ||||||
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: | 2011-06-07 08:50:41 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: | 713562 | ||||||||
Attachments: |
|
Description
Jóhann B. Guðmundsson
2011-04-07 12:42:04 UTC
Created attachment 492134 [details] Native systemd service file for ypbind This is a new systemd service file for ypbind, which works together with scripts ypbind-pre-setdomain and ypbind-post-waitbind. There is a complete build in Rawhide to test: http://koji.fedoraproject.org/koji/buildinfo?buildID=238998 Moving systemd service RFEs to rawhide. At this point, it is not appropriate in the Fedora 15 cycle to add these. Furthermore, at this point, we are still finalizing the packaging guidelines to handle SysV -> systemd upgrades. We therefore request: - wait until there are packaging guidelines (this will be announced on the devel list). This ensures that upgrades will work smoothly and we/you won't have to do multiple sets of changes. - work on these sorts of changes for Fedora 16 where necessary, not Fedora 15, as we're trying to fix things for release. - do *not* change a service from SysV to systemd in an existing release (such as Fedora 15), as this is the sort of behavior change that goes against our update policy, documented as https://fedoraproject.org/wiki/Updates_Policy This latest service file fails on systems with selinux disabled. The setsebool command returns a 1 if selinux is disabled which creates a failed start of the service. Does adding "-" to the ExecStartPre= line fix the problem as in.. [Unit] Description=The ypbind daemon which binds NIS/YP clients to NIS domain After=syslog.target network.target rpcbind.service [Service] EnvironmentFile=-/etc/sysconfig/network EnvironmentFile=-/etc/sysconfig/ypbind ExecStartPre=-/usr/lib/ypbind/ypbind-pre-setdomain ; /usr/sbin/setsebool allow_ypbind=1 ExecStart=/usr/sbin/ypbind -f $OTHER_YPBIND_OPTS ExecStopPost=/usr/sbin/setsebool allow_ypbind=0 ; /usr/lib/ypbind/ypbind-post-waitbind [Install] WantedBy=multi-user.target (In reply to comment #3) > This latest service file fails on systems with selinux disabled. Thanks for the notice. The following change fixes the failure. -ExecStartPre=/usr/lib/ypbind/ypbind-pre-setdomain ; /usr/sbin/setsebool allow_ypbind=1 +ExecStartPre=-/usr/lib/ypbind/ypbind-pre-setdomain +ExecStartPre=-/usr/sbin/setsebool allow_ypbind=1 A new build with this fix is available here: http://koji.fedoraproject.org/koji/buildinfo?buildID=246603 Since this bug has been moved to Rawhide I'm closing this for now. Feel free to re-open it if needed. |