initial commit of file from CVS for e-smith-oidentd on Wed 12 Jul 09:01:42 BST 2023

This commit is contained in:
Brian Read
2023-07-12 09:01:42 +01:00
parent 67854ff30a
commit 6844b79b8e
18 changed files with 670 additions and 2 deletions

38
createlinks Executable file
View File

@@ -0,0 +1,38 @@
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
templates2events("/etc/oidentd_masq.conf", qw(
console-save
bootstrap-console-save
e-smith-oidentd-update));
templates2events("/etc/sysconfig/oidentd", qw(
console-save
bootstrap-console-save
post-install
post-upgrade
e-smith-oidentd-update));
#service restart
my $event = "e-smith-oidentd-update";
##will restart only if already running
#safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/oidentd");
event_link("systemd-default", $event, "05");
event_link("systemd-reload", $event, "89");
#systemd link
foreach my $target (qw(multi-user sme-server))
{
foreach my $unit (qw(
oidentd
))
{
#default is disabled
# symlink("../$unit",
# "root/usr/lib/systemd/system/$target.target.wants/$unit")
# or die "Can't symlink to root/usr/lib/systemd/system/$target.target.wants/$unit: $!";
}
}