initial commit of file from CVS for e-smith-tinydns on Wed 12 Jul 09:11:00 BST 2023

This commit is contained in:
Brian Read
2023-07-12 09:11:00 +01:00
parent 4d5bb6a2a3
commit 1cdaede0de
36 changed files with 1599 additions and 2 deletions

35
createlinks Normal file
View File

@@ -0,0 +1,35 @@
#!/usr/bin/perl -w
# This script creates the symlinks needed by this RPM
use strict;
use esmith::Build::CreateLinks qw(:all);
#-------------------------------------------------------------------
# actions for bootstrap-console-save event, e-smith-tinydns-update :
#-------------------------------------------------------------------
foreach (qw(
env/IP
env/DATALIMIT
root/data
))
{
templates2events("/var/service/tinydns/$_", qw(
bootstrap-console-save
e-smith-tinydns-update
));
}
#--------------------------------------------------
# actions for ip-change event
#--------------------------------------------------
my $event = "ip-change";
safe_symlink("sigusr2", "root/etc/e-smith/events/$event/services2adjust/tinydns");
#--------------------------------------------------
# actions for e-smith-tinydns-update event
#--------------------------------------------------
$event = "e-smith-tinydns-update";
safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/tinydns");
templates2events("/etc/systemd/system-preset/49-koozali.preset", $event);
event_link("systemd-reload", $event, "89");