Displaying 6 results from an estimated 6 matches for "localurl".
Did you mean:
localspl
2017 May 17
2
Re: Callback re-registration after libvirtd restart
Hi Daniel,
I tried that but it doesn't work:
func libvirt_close_callback(conn *libvirt.Connect, reason
libvirt.ConnectCloseReason){
log.Printf("close callback: %+v", reason)
}
func event_listen() {
log.Printf("event_listen %s", conf.Libvirt.LocalUrl)
hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl)
err = hv.RegisterCloseCallback(libvirt_close_callback)
if err != nil {
log.Printf("unable to register close callback")
return
}
...
The callback fires only when I kill my app,
^CGot signal:%!(EXTRA sy...
2017 May 17
2
Callback re-registration after libvirtd restart
Hi all,
I'm using libvirt-go and I following code to listen for lifecycle events:
func event_listen() {
log.Printf("event_listen %s", conf.Libvirt.LocalUrl)
hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl)
lifecycleCallback := func(c *libvirt.Connect, d *libvirt.Domain, event
*libvirt.DomainEventLifecycle) {
event_message(c, d, "lifecycle", event)
}
_, err = hv.DomainEventLifecycleRegister(nil, lifecycleCallback...
2005 Dec 09
1
local source packages install from within R session - cross-platform
...R", url = paste("file:",
basedir, "/bin/windows/contrib", sep = "")) {
# Install one or several packages from a local source
if (.Platform$OS.type != "windows")
stop("This function is for Windows only! Use install.packages instead.")
localurl <- (length(grep("^file:", url)) > 0)
if (!localurl)
stop("installLocalPackages can only install local packages. Use
install.packages to install accross the internet")
a <- CRAN.packages(contriburl = url)
pkgs <- select.list(a[, 1], , TRUE)
if (lengt...
2017 May 17
0
Re: Callback re-registration after libvirtd restart
On Wed, May 17, 2017 at 03:08:23PM +0200, Daniel Kučera wrote:
> Hi all,
>
> I'm using libvirt-go and I following code to listen for lifecycle events:
>
> func event_listen() {
> log.Printf("event_listen %s", conf.Libvirt.LocalUrl)
> hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl)
>
> lifecycleCallback := func(c *libvirt.Connect, d *libvirt.Domain, event
> *libvirt.DomainEventLifecycle) {
> event_message(c, d, "lifecycle", event)
> }
>
> _, err = hv.DomainEvent...
2017 May 17
0
Re: Callback re-registration after libvirtd restart
...ied that but it doesn't work:
>
> func libvirt_close_callback(conn *libvirt.Connect, reason
> libvirt.ConnectCloseReason){
> log.Printf("close callback: %+v", reason)
> }
>
> func event_listen() {
> log.Printf("event_listen %s", conf.Libvirt.LocalUrl)
> hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl)
>
> err = hv.RegisterCloseCallback(libvirt_close_callback)
> if err != nil {
> log.Printf("unable to register close callback")
> return
> }
> ...
>
> The callback fires...
2017 May 17
2
Re: Callback re-registration after libvirtd restart
...>
> > func libvirt_close_callback(conn *libvirt.Connect, reason
> > libvirt.ConnectCloseReason){
> > log.Printf("close callback: %+v", reason)
> > }
> >
> > func event_listen() {
> > log.Printf("event_listen %s", conf.Libvirt.LocalUrl)
> > hv, err := libvirt.NewConnect(conf.Libvirt.LocalUrl)
> >
> > err = hv.RegisterCloseCallback(libvirt_close_callback)
> > if err != nil {
> > log.Printf("unable to register close callback")
> > return
> > }
>...