#!/usr/bin/perl -w # This script creates the symlinks needed by this RPM use strict; use esmith::Build::CreateLinks qw(:all); #------------------------------------------------------------------- # actions for bootstrap-console-save event, smeserver-tinydns-update : #------------------------------------------------------------------- templates2events("/var/service/tinydns/root/data", qw( bootstrap-console-save smeserver-tinydns-update )); templates2events("/usr/lib/systemd/system/tinydns.service.d/50koozali.conf", qw( bootstrap-console-save smeserver-tinydns-update )); #-------------------------------------------------- # actions for ip-change event #-------------------------------------------------- my $event = "ip-change"; safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/tinydns"); #-------------------------------------------------- # actions for smeserver-tinydns-update event #-------------------------------------------------- $event = "smeserver-tinydns-update"; safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/tinydns"); templates2events("/etc/systemd/system-preset/49-koozali.preset", $event); templates2events("/usr/lib/systemd/system/tinydns.service.d/50koozali.conf", $event); templates2events("/etc/rsyslog.conf", $event); safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog"); event_link("systemd-reload", $event, "89");