Re: [pve-devel] systemd notify/watchdog

2015-03-04 Thread Alexandre DERUMIER
Objet: Re: [pve-devel] systemd notify/watchdog I don't have found anything... :( Isn't it possible with perl XS, to create a perl module which use the systemd c++ class ? I found a php/hhvm module which is doing something like this https://github.com/shish/hhvm-sd-notify/blob/master

Re: [pve-devel] systemd notify/watchdog

2015-03-04 Thread Alexandre DERUMIER
: [pve-devel] systemd notify/watchdog OK, so that seems to be something different, so we can us it. (We need to implemented in perl sd_notify to tell to systemd at regular interval that the service is running) Are there really no perl bindings for systemd

Re: [pve-devel] systemd notify/watchdog

2015-03-04 Thread Alexandre DERUMIER
Are there really no perl bindings for systemd? I don't have found anything... :( - Mail original - De: dietmar diet...@proxmox.com À: aderumier aderum...@odiso.com Cc: pve-devel pve-devel@pve.proxmox.com Envoyé: Mercredi 4 Mars 2015 15:51:33 Objet: Re: [pve-devel] systemd notify

Re: [pve-devel] systemd notify/watchdog

2015-03-04 Thread Dietmar Maurer
Isn't it possible with perl XS, to create a perl module which use the systemd c++ class ? Sure, that is no problem. Or can we use the Net:DBUS module somehow? ___ pve-devel mailing list pve-devel@pve.proxmox.com

Re: [pve-devel] systemd notify/watchdog

2015-03-04 Thread Alexandre DERUMIER
Or can we use the Net:DBUS module somehow? Sorry, I really don't known. - Mail original - De: dietmar diet...@proxmox.com À: aderumier aderum...@odiso.com Cc: pve-devel pve-devel@pve.proxmox.com Envoyé: Jeudi 5 Mars 2015 06:56:02 Objet: Re: [pve-devel] systemd notify/watchdog Isn't

Re: [pve-devel] systemd notify/watchdog

2015-03-04 Thread Dietmar Maurer
work without opening /dev/watchdog? I think it's different than hardware watchdog (in case of system hang). Here it's more software watchdog, services tell to systemd that they are running. (for pvestatd, between each loop for example) and if systemd don't receive the notify, it's

Re: [pve-devel] systemd notify/watchdog

2015-03-04 Thread Dietmar Maurer
OK, so that seems to be something different, so we can us it. (We need to implemented in perl sd_notify to tell to systemd at regular interval that the service is running) Are there really no perl bindings for systemd? ___ pve-devel mailing list

Re: [pve-devel] systemd notify/watchdog

2015-03-04 Thread Alexandre DERUMIER
Objet: Re: [pve-devel] systemd notify/watchdog work without opening /dev/watchdog? I think it's different than hardware watchdog (in case of system hang). Here it's more software watchdog, services tell to systemd that they are running. (for pvestatd, between each loop for example

Re: [pve-devel] systemd notify/watchdog

2015-03-03 Thread Alexandre DERUMIER
2015 06:39:53 Objet: Re: [pve-devel] systemd notify/watchdog systemd have a watchdog feature http://man7.org/linux/man-pages/man3/sd_watchdog_enabled.3.html which could be great for some services, like pvestatd. (which sometimes can freeze which slow/bad storage stats) Unfortunately

[pve-devel] systemd notify/watchdog

2015-03-03 Thread Alexandre DERUMIER
systemd have a watchdog feature http://man7.org/linux/man-pages/man3/sd_watchdog_enabled.3.html which could be great for some services, like pvestatd. (which sometimes can freeze which slow/bad storage stats) The idea is that the application need to send notifify at regular interval to

Re: [pve-devel] systemd notify/watchdog

2015-03-03 Thread Dietmar Maurer
which could be great for some services, like pvestatd. (which sometimes can freeze which slow/bad storage stats) If you want, I can upload the jessie packages today - those already include .service definition files. Then you can test those features directly ;-)

Re: [pve-devel] systemd notify/watchdog

2015-03-03 Thread Dietmar Maurer
systemd have a watchdog feature http://man7.org/linux/man-pages/man3/sd_watchdog_enabled.3.html which could be great for some services, like pvestatd. (which sometimes can freeze which slow/bad storage stats) Unfortunately, a restart does not help in that case? The idea is that the