initial commit of file from CVS for e-smith-oidentd on Wed 12 Jul 09:01:42 BST 2023
This commit is contained in:
38
createlinks
Executable file
38
createlinks
Executable 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: $!";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user