smeserver-bridge-interface/createlinks

43 lines
1.2 KiB
Plaintext
Raw Normal View History

#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
# our event specific for updating with yum without reboot
$event = "smeserver-bridge-interface-update";
#add here the path to your templates needed to expand
#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
foreach my $file (qw(
/etc/systemd/system-preset/49-koozali.preset
/usr/lib/systemd/system/dhcpd.service.d/50koozali.conf
))
{
templates2events( $file, $event );
}
#action needed in case we have a systemd unit
#event_link("systemd-default", $event, "10");
#event_link("systemd-reload", $event, "50");
event_link("systemd-default", $event, "88");
event_link("systemd-reload", $event, "89");
#action specific to this package
#event_link("bridge-disable", "$event", "02");
#event_link("bridge-enable", "$event", "98");
event_link("bridge-enable", "$event", "87");
#services we need to restarta
#none?
event_services($event, "dhcpd" => "restart");
event_services($event, "bridge" => "restart");
foreach my $event (qw/console-save bootstrap-console-save/){
event_link("bridge-disable", "$event", "02");
event_link("bridge-enable", "$event", "98");
}