Re: [Spacewalk-devel] Selinux fix for taking backups of the oracle xe

2009-12-08 Thread Jan Pazdziora
On Tue, Dec 01, 2009 at 09:47:29PM +0100, George wrote:
 Making a backup of spacewalk database:

 environment: centos 5.3 running spacewalk 0.6 (according to  
 /etc/spacewalk-release: spacewalk release 0.6.4 (Alpha))

[...]

George,

thank you for your post. I shall try to investigate and integrate the
changes (I actually hit some earlier in the process when trying to run
the backup, which I'm focusing on now).

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat

___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel


[Spacewalk-devel] (no subject)

2009-12-08 Thread sadas sadas
 
Hi,




 I want to write a php script that start/stop centos servers connected to 
Spacewalk server. Where in oracle database php script can edit
 so when I use my php to start/stop centos server and spacewalk to execute my 
command and to stop/start the server?

regards


-
Вижте водещите новини от Vesti.bg!
http://www.vesti.bg___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Re: [Spacewalk-devel] (no subject)

2009-12-08 Thread Miroslav Suchý

sadas sadas wrote:

   Hi,


First of all, it is better if you write subject next time.

 I want to write a php script that start/stop centos servers 
connected to Spacewalk server. Where in oracle database php script can 
edit  so when I use my php to start/stop centos server and spacewalk to 
execute my command and to stop/start the server?


You do not want to use db directly. You really do not want it.
It is much better to use API instead.
Documentation of API is on:
https://url.of.your.spacewalk/rhn/apidoc/
You may want to use API call
 system.scheduleScriptRun
and call it with script
#!/bin/sh
/usr/bin/halt

Dunno how do you want to start it. WakeOnLan?

But if you are talking about guest. There is already API for that:
 system.scheduleGuestAction
it can: 'start', 'suspend', 'resume', 'restart', 'shutdown' virtual systems.

If this API call does not suite your needs, it is much better instead 
custom PHP scripting, create new API call in java and contribute it back 
to Spacewalk project so others can benefit from your work too. PHP 
script will use only few people (if any).


--
Miroslav Suchy
Red Hat Satellite Engineering

___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel