1 |
diff -Nur smeserver-wsdd-0.2.old/createlinks smeserver-wsdd-0.2/createlinks |
2 |
--- smeserver-wsdd-0.2.old/createlinks 2021-02-23 16:26:49.972000000 -0500 |
3 |
+++ smeserver-wsdd-0.2/createlinks 2021-02-23 16:33:06.202000000 -0500 |
4 |
@@ -25,52 +25,18 @@ |
5 |
|
6 |
# rpm update action (invoked by yum on install and update |
7 |
$contrib = "smeserver-wsdd"; |
8 |
-event_actions("$contrib-update", qw( |
9 |
+$event = "$contrib-update"; |
10 |
+event_actions($event, qw( |
11 |
systemd-default 10 |
12 |
)); |
13 |
|
14 |
-event_templates("$contrib-update", qw( |
15 |
+event_templates($event, qw( |
16 |
+ /usr/lib/systemd/system/wsdd.service |
17 |
/etc/systemd/system-preset/49-koozali.preset |
18 |
- |
19 |
-)); |
20 |
- |
21 |
-event_services("$contrib-update", qw( |
22 |
+ /etc/rc.d/init.d/masq |
23 |
)); |
24 |
|
25 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/wsdd"); |
26 |
+safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/masq"); |
27 |
|
28 |
|
29 |
- |
30 |
-## Runlevel init links. |
31 |
- |
32 |
-#service_link_enhanced("mongodb", "S57", "7"); |
33 |
-#service_link_enhanced("mongodb", "K03", "6"); |
34 |
- |
35 |
-## Runlevel init links. |
36 |
-#service_link_enhanced("rocketchat", "S99", "7"); |
37 |
-# |
38 |
-## Must be an easier way.... |
39 |
-#service_link_enhanced("rocketchat", "K01", "0"); |
40 |
-#service_link_enhanced("rocketchat", "K01", "1"); |
41 |
-#service_link_enhanced("rocketchat", "K01", "2"); |
42 |
-#service_link_enhanced("rocketchat", "K01", "3"); |
43 |
-#service_link_enhanced("rocketchat", "K01", "4"); |
44 |
-#service_link_enhanced("rocketchat", "K01", "5"); |
45 |
-#service_link_enhanced("rocketchat", "K01", "6"); |
46 |
- |
47 |
- |
48 |
-# Set up generic logfile timestamp renaming/symlinking |
49 |
- |
50 |
-#foreach (qw( |
51 |
-# /var/log/rocketchat.log |
52 |
-# )) |
53 |
-#{ |
54 |
-# safe_touch "root/etc/e-smith/events/logrotate/logfiles2timestamp/$_"; |
55 |
-#} |
56 |
- |
57 |
-#-------------------------------------------------- |
58 |
-# actions for logrotate event |
59 |
-#-------------------------------------------------- |
60 |
- |
61 |
-#$event = "logrotate"; |
62 |
- |
63 |
-#safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ipsec"); |