/[smecontribs]/rpms/smeserver-vacation/contribs10/smeserver-vacation-1.1-Add-in-update-action-to-restart-smanager.patch
ViewVC logotype

Annotation of /rpms/smeserver-vacation/contribs10/smeserver-vacation-1.1-Add-in-update-action-to-restart-smanager.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Oct 26 10:00:27 2020 UTC (3 years, 6 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-vacation-1_1-34_el7_sme, smeserver-vacation-1_1-31_el7_sme, smeserver-vacation-1_1-32_el7_sme, smeserver-vacation-1_1-30_el7_sme, smeserver-vacation-1_1-35_el7_sme, smeserver-vacation-1_1-36_el7_sme, smeserver-vacation-1_1-33_el7_sme, HEAD
* Sat Oct 24 2020 Brian Read <brianr@bjsystems.co.uk> 1.1-30.sme
- Update to make call to smanager and systemd dependant on smanager being installed and move from post in spec file [SME: 11052]
- to smeserver-vacation-update event

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed