| Summary: | spacewalk-service does not offer a way to disable some services, like taskomatic when setting Redundant Spacewalk with Stand-Alone DB | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Marcelo Moreira de Mello <mmello> | ||||||||
| Component: | Server | Assignee: | Jan Pazdziora <jpazdziora> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||||||
| Severity: | medium | Docs Contact: | |||||||||
| Priority: | medium | ||||||||||
| Version: | 1.7 | CC: | jpazdziora, mmello | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | All | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | spacewalk-admin-1.7.3-1 | Doc Type: | Bug Fix | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | 784139 | Environment: | |||||||||
| Last Closed: | 2012-03-07 09:54:10 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: | 765736 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Marcelo Moreira de Mello
2012-01-24 02:50:25 UTC
Taking.. Created attachment 557109 [details] patch [1/3] Hello, Here follow 3 patches which includes a capability to Spacewalk ignore to start some services when running the /usr/sbin/spacewalk-service script. Below is an example after applied the patch excluding the Taskomatic service to be started: # cat /etc/rhn/disabled-services DISABLED_SERVICES="taskomatic" # spacewalk-service start Starting spacewalk services... Initializing jabberd processes ... Starting router: [ OK ] Starting sm: [ OK ] Starting c2s: [ OK ] Starting s2s: [ OK ] Starting Oracle Net Listener ... [ OK ] Starting Oracle DB instance "rhnsat" ... [ OK ] Starting osa-dispatcher: [ OK ] Starting tomcat6: [ OK ] Starting httpd: [ OK ] Starting Monitoring ... [ OK ] Starting MonitoringScout ... [ OK ] Starting rhn-search... Starting cobbler daemon: SERVING! [ OK ] Done. # spacewalk-service status router (pid 20117) is running... sm (pid 20124) is running... c2s (pid 20131) is running... s2s (pid 20138) is running... Oracle Net Listener (pid 20189) is running... Oracle DB instance rhnsat (pid 20201) is running... osa-dispatcher (pid 20245) is running... tomcat6 (pid 20316) is running... [ OK ] httpd (pid 20339) is running... rhn-search is running (20386). cobblerd (pid 20421) is running... # /etc/init.d/taskomatic status RHN Taskomatic is not running. Patch already sent to approval at spacewalk-devel mailing list at https://www.redhat.com/archives/spacewalk-devel/2012-January/msg00056.html Best, Marcelo Moreira de Mello Created attachment 557110 [details]
patch [2/3]
Created attachment 557111 [details]
patch [3/3]
I've ended up adding support for file /etc/rhn/service-list where you can manipulate the $SERVICES list in any way, or override it completely. In Spacewalk master, 5ed8779d0e1e4b8e4b73c4f273bdbd934a08472b. Spacewalk 1.7 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes17 |