1 |
brianr |
1.1 |
diff -urN smeserver-vacation-1.1.old/createlinks smeserver-vacation-1.1/createlinks |
2 |
|
|
--- smeserver-vacation-1.1.old/createlinks 2006-03-25 03:48:00.000000000 +0000 |
3 |
|
|
+++ smeserver-vacation-1.1/createlinks 2020-10-26 09:54:00.004738367 +0000 |
4 |
|
|
@@ -5,3 +5,5 @@ |
5 |
|
|
use File::Path; |
6 |
|
|
|
7 |
|
|
panel_link("uservacations", "manager"); |
8 |
|
|
+ |
9 |
|
|
+event_link("contribs-possible-restart-smanager","smeserver-vacation-update","10"); |
10 |
|
|
\ No newline at end of file |
11 |
|
|
diff -urN smeserver-vacation-1.1.old/root/etc/e-smith/events/actions/contribs-possible-restart-smanager smeserver-vacation-1.1/root/etc/e-smith/events/actions/contribs-possible-restart-smanager |
12 |
|
|
--- smeserver-vacation-1.1.old/root/etc/e-smith/events/actions/contribs-possible-restart-smanager 1970-01-01 01:00:00.000000000 +0100 |
13 |
|
|
+++ smeserver-vacation-1.1/root/etc/e-smith/events/actions/contribs-possible-restart-smanager 2020-10-24 11:11:41.631770916 +0100 |
14 |
|
|
@@ -0,0 +1,8 @@ |
15 |
|
|
+#!/bin/sh |
16 |
|
|
+if (systemctl list-unit-files |grep smanager) then |
17 |
|
|
+ echo "Restarting smanager" |
18 |
|
|
+ /sbin/e-smith/signal-event manager2-refresh; |
19 |
|
|
+ systemctl restart smanager |
20 |
|
|
+else |
21 |
|
|
+ echo "Smanager not loaded" |
22 |
|
|
+fi |