You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
smeserver-oidentd/createlinks

39 lines
972 B
Perl

#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
templates2events("/etc/oidentd_masq.conf", qw(
console-save
bootstrap-console-save
smeserver-oidentd-update));
templates2events("/etc/sysconfig/oidentd", qw(
console-save
bootstrap-console-save
post-install
post-upgrade
smeserver-oidentd-update));
#service restart
my $event = "smeserver-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: $!";
}
}