smeserver-oidentd/createlinks

39 lines
966 B
Plaintext
Raw Normal View History

#!/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: $!";
}
}