mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-05-28 04:02:31 -04:00
samples: update dbus client samples
This commit is contained in:
parent
b263028c71
commit
2e47cfdcfc
3 changed files with 5 additions and 5 deletions
|
|
@ -53,8 +53,8 @@ $knotd_interface->connect_to_signal('zone_ksk_submission', sub
|
|||
|
||||
$knotd_interface->connect_to_signal('zone_dnssec_invalid', sub
|
||||
{
|
||||
my ($zone) = @_;
|
||||
print "Invalid DNSSEC for zone=$zone\n";
|
||||
my ($zone, $remaining) = @_;
|
||||
print "Invalid DNSSEC for zone=$zone remaining=$remaining seconds\n";
|
||||
});
|
||||
|
||||
# Main loop
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ def sig_submission(sender, path, interface, signal, args):
|
|||
print("Ready KSK for zone=%s keytag=%u keyid=%s" % (zone, key_tag, kasp_id))
|
||||
|
||||
def sig_invalid(sender, path, interface, signal, args):
|
||||
(zone) = args
|
||||
print("Invalid DNSSEC for zone=%s" % (zone))
|
||||
(zone, remaining) = args
|
||||
print("Invalid DNSSEC for zone=%s remaining=%d seconds" % (zone, remaining))
|
||||
|
||||
if __name__ == '__main__':
|
||||
loop = dasbus.loop.EventLoop()
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ cb() {
|
|||
echo "Updated zone=${2} to serial=${3}"
|
||||
;;
|
||||
zone_dnssec_invalid)
|
||||
echo "Invalid DNSSEC for zone=${2}"
|
||||
echo "Invalid DNSSEC for zone=${2} remaining=${3} seconds"
|
||||
;;
|
||||
started)
|
||||
echo "Server started"
|
||||
|
|
|
|||
Loading…
Reference in a new issue