1 |
brianr |
1.1 |
diff -urN smeserver-dhcpmanager-2.0.4.old/createlinks smeserver-dhcpmanager-2.0.4/createlinks |
2 |
|
|
--- smeserver-dhcpmanager-2.0.4.old/createlinks 2015-08-13 13:43:24.000000000 +0100 |
3 |
|
|
+++ smeserver-dhcpmanager-2.0.4/createlinks 2021-03-24 10:43:32.560322321 +0000 |
4 |
|
|
@@ -2,5 +2,26 @@ |
5 |
|
|
|
6 |
|
|
use esmith::Build::CreateLinks qw(:all); |
7 |
|
|
|
8 |
|
|
-# Links for the panel |
9 |
|
|
panel_link("dhcpd", "manager"); |
10 |
|
|
+ |
11 |
|
|
+# our event specific for updating with yum without reboot |
12 |
|
|
+$event = "smeserver-dhcpmanager-update"; |
13 |
|
|
+#add here the path to your templates needed to expand |
14 |
|
|
+#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event |
15 |
|
|
+ |
16 |
|
|
+ foreach my $file (qw( |
17 |
|
|
+ /etc/systemd/system-preset/49-koozali.preset |
18 |
|
|
+ )) |
19 |
|
|
+ { |
20 |
|
|
+ templates2events( $file, $event ); |
21 |
|
|
+ } |
22 |
|
|
+ |
23 |
|
|
+ #action needed in case we have a systemd unit |
24 |
|
|
+ event_link("systemd-default", $event, "10"); |
25 |
|
|
+ event_link("systemd-reload", $event, "50"); |
26 |
|
|
+ |
27 |
|
|
+ #action specific to this package |
28 |
|
|
+ #event_link("some event", $event, "30"); |
29 |
|
|
+ #services we need to restart |
30 |
|
|
+ #safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/some service"); |
31 |
|
|
+ |