[Spacewalk-list] deploy configuration file and reload/restart service
Steve Meier
email at steve-meier.de
Tue Oct 16 12:34:01 UTC 2012
Hi Sabine,
one way could be to run the deployment and restart in one scheduled remote command using rhncfg-client, like this:
rhncfg-client get /etc/httpd/conf/httpd.conf
/sbin/service httpd reload
Hope this helps.
Kind regard,
Steve
Am 16.10.2012 um 13:45 schrieb <Sabine.Jordan at der.net>:
> Hello all,
>
> I’ve installed spacewalk 1.7 on Centos 6.3 and created a configuration channel containing one centrally managed file. Currently there is only one system that subscribed to this config channel, it also works for me to deploy the managed config file to the system. But I would also like to reload or restart some services (e.g. /etc/init.d/httpd reload) after deploying the file via config channel. I wonder if this is possible? If so, how can it be done?
> I’ve noticed that there is a possibility to schedule a remote command, but how can I link the schedule of a remote command with the deployment of a config file? Or is there any other way to do so?
>
> Thank you in advance.
>
> Greetings,
>
> Sabine
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20121016/67884462/attachment.htm>
More information about the Spacewalk-list
mailing list