Bug 767034
| Summary: | Migrate SysV script to support systemd at Fedora17 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Marcelo Moreira de Mello <mmello> | ||||||
| Component: | Server | Assignee: | Michael Mráka <mmraka> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 1.6 | CC: | cperry, herrold, jpazdziora, mmello, mmraka, mzazrivec, phess | ||||||
| Target Milestone: | --- | Keywords: | Patch | ||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | spacewalk-admin-1.9.4-1 osad-5.11.17-1 spacewalk-monitoring-1.9.1-1 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2013-03-06 18:34:25 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: | 917805 | ||||||||
| Attachments: |
|
||||||||
|
Description
Marcelo Moreira de Mello
2011-12-13 02:56:52 UTC
Taking... Created attachment 555507 [details]
Silly first draft
Created attachment 555570 [details]
Unit file employing the "spacewalk-service" wrapper script
I don't feel this unit file is correct. Of course, if would be good if Marcelo could clarify the overall goal of this bugzilla but my understanding is that we need the services currently started via spacewalk-service to become first-class citizens to systemd, not spacewalk-service to become a systemd unit. (In reply to comment #4) > my understanding is that we need the services currently started > via spacewalk-service to become first-class citizens to systemd, not > spacewalk-service to become a systemd unit. I agree with you. I have a few unit files that try to do just that -- they're currently working fine on a Fedora 16 with Spacewalk. I'll upload them here ASAP (i.e. in a few hours). Just found out Lennart's solution (the best one so far) to this problem: lists.freedesktop.org/archives/systemd-devel/2012-January/004266.html Our spacewalk unit does NOT have to be a .service at all; it's perfectly fine as a .target because Spacewalk is "just" a collection of dependencies. I'll be implementing this solution soon in order to get Spacewalk its native systemd unit for Fedora 16 (hopefully). Systemd stuff has been implemented in spacewalk nightly.
commit 53bfb8b997545f02fc7660fce4f7cf12615347ac
pack serviced version of spacewalk-service on Fedoras
commit 20980f27f3ee76e87513250a67c3a76d2ae2b488
added systemd version of spacewalk-service
commit f1bf06dc1772c6504d5ba41582d36d82fad04ac0
start monitoring services with spacewalk target
commit 705016ea4bd0a30a4e723533ad038c186d6047e9
systemd target for spacewalk
commit eff33eb16562a14b88436d7fa23bcbbd967c5979
moved waiting for jabberd to helper
to be reused for systemd
commit 6be15bef9c7b5f002056829badfbc8beca94c893
moved ensure_httpd_down() into script
so we can reuse it for systemd startup script
commit eaa71f1648035a07a845c8f149651c25edcaeda7
moved wait-for-tomcat into general startup helper
commit fca0af8b597ea614385620dbb12d1e357414da18
possibility to disable waiting for tomcat
commit 90c4c24115f9de654da34d52be40e0a0685c078c
implemented wait for tomcat in systemd
commit 11af8d303c3e7a3cb9e325abf098c61abba14961
added spacewalk-wait-for-tomcat to rpm
commit 47621445e52d0373dc49f584c2b107c0b51630c5
moved wait-for-tomcat into script
commit 205eeb851140f9f160667057ec54e3785b95b4a2
pack monitoring systemd stuff
commit 4f18111d98772e67c94e15817f0e402f6b8d2af0
created systemd services for monitoring
commit 029f744b8f8097945ba7b17d3b8383167a097b3b
Marking bug as ON_QA since tonight's build of Spacewalk nightly is a release candidate for Spacewalk 1.9. Spacewalk 1.9 has been released. https://fedorahosted.org/spacewalk/wiki/ReleaseNotes19 |