Red Hat Bugzilla – Bug 767034
Migrate SysV script to support systemd at Fedora17
Last modified: 2013-03-06 13:34:25 EST
Description of problem:
Migrate SysV script to support SystemD at Fedora17
Version-Release number of selected component (if applicable):
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.
pack serviced version of spacewalk-service on Fedoras
added systemd version of spacewalk-service
start monitoring services with spacewalk target
systemd target for spacewalk
moved waiting for jabberd to helper
to be reused for systemd
moved ensure_httpd_down() into script
so we can reuse it for systemd startup script
moved wait-for-tomcat into general startup helper
possibility to disable waiting for tomcat
implemented wait for tomcat in systemd
added spacewalk-wait-for-tomcat to rpm
moved wait-for-tomcat into script
pack monitoring systemd stuff
created systemd services for monitoring
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.