Description of problem: When I install Spacewalk 0.3 I got this error: # tail /var/log/rhn/rhn-installation.log Command: /usr/bin/spacewalk-setup Stopping tomcat5: [ OK ] Stopping RHN Taskomatic... Stopped RHN Taskomatic. Stopping httpd: [ OK ] Shutting down Jabber router: [ OK ] osa-dispatcher: unrecognized service Shutting down TSDBLocalQueue: [FAILED] service Monitoring does not support chkconfig
Note for myself: This code enabled services in old installer. But we cannot use it since it require installed packages: #if ($opts{"monitoring-backend"}) { my $org_id = RHN::SatInstall->get_satellite_org_id(); my $sc = new RHN::SatCluster(customer_id => $org_id, description => 'RHN Monitoring Satellite', last_update_user => 'installer', ); $sc->create_new(); my $scout_shared_key = RHN::SatCluster->fetch_key($sc->recid); RHN::SatInstall->write_config({ monitoringDOTscout_shared_key => $scout_shared_key }, '/etc/sysconfig/rhn-satellite-prep/satellite-local-rules.conf'); #} #if ($opts{"monitoring-scout"}) { print "Setting up Monitoring scout\n"; RHN::SatInstall->setup_monitoring_sysv_step('MonitoringScout'); #}
We can use it. In this time we have this modules installed. spacewalk-setup is called in install.pl after all packages are installed. And in spacewalk are loaded using yum install spacewalk.
I created new package spacewalk-monitoring which beside this new init.d scripts contains all monitoring dependecy. Commits between: bdc76452e0b6f17779d1c42438c69bae85c532f2 and 1787439183ac7f388bb9294ba1f1283bfa49c59b
The rhn-installation.log no longer has the error: Unsubstituted Tags: Shutting down rhn-satellite... Stopping cobbler daemon: [FAILED] Stopping rhn-search... rhn-search was not running. 2009-01-14 12:57:15 MonitoringScout: Debug level = 0 2009-01-14 12:57:15 MonitoringScout: Switches: stop 2009-01-14 12:57:15 MonitoringScout: ALREADY STOPPED 2009-01-14 12:57:15 MonitoringScout: ============ STATUS =============== 2009-01-14 12:57:15 MonitoringScout: ---- Monitoring backend functionality is disabled 2009-01-14 12:57:15 MonitoringScout: ---- Monitoring scout functionality is disabled 2009-01-14 12:57:15 MonitoringScout: Last action: stop 2009-01-14 12:57:15 MonitoringScout: ** Installed for SysV startup ** 2009-01-14 12:57:15 MonitoringScout: STOPPED 2009-01-14 12:57:15 MonitoringScout: =================================== 2009-01-14 12:57:15 Monitoring: Debug level = 0 2009-01-14 12:57:15 Monitoring: Switches: stop 2009-01-14 12:57:15 Monitoring: ALREADY STOPPED 2009-01-14 12:57:15 Monitoring: ============ STATUS =============== 2009-01-14 12:57:15 Monitoring: ---- Monitoring backend functionality is disabled 2009-01-14 12:57:15 Monitoring: ---- Monitoring scout functionality is disabled 2009-01-14 12:57:15 Monitoring: Last action: stop 2009-01-14 12:57:15 Monitoring: ** Installed for SysV startup ** 2009-01-14 12:57:15 Monitoring: STOPPED 2009-01-14 12:57:15 Monitoring: =================================== Stopping httpd: [FAILED] Stopping tomcat5: Stopping RHN Taskomatic... RHN Taskomatic was not running. Done.