/[smecontribs]/rpms/smeserver-softethervpn-server/contribs10/smeserver-softethervpn-server-4.34-Update-Createlinks-for-systemd.patch
ViewVC logotype

Annotation of /rpms/smeserver-softethervpn-server/contribs10/smeserver-softethervpn-server-4.34-Update-Createlinks-for-systemd.patch

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


Revision 1.1 - (hide annotations) (download)
Wed Jan 20 15:46:55 2021 UTC (3 years, 9 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-softethervpn-server-4_34-4_el7_sme, smeserver-softethervpn-server-4_34-8_el7_sme, smeserver-softethervpn-server-4_34-2_el7_sme, smeserver-softethervpn-server-4_34-7_el7_sme, smeserver-softethervpn-server-4_34-6_el7_sme, smeserver-softethervpn-server-4_34-5_el7_sme, smeserver-softethervpn-server-4_34-3_el7_sme, HEAD
* Sat Jan 16 2021 Brian Read <brianr@bjsystems.co.uk> %{version}-2.sme
- Initial import to SME10 tree [SME: 11326]
- Update-Createlinks-for-systemd

1 brianr 1.1 diff -urN smeserver-softethervpn-server-4.34.old/createlinks smeserver-softethervpn-server-4.34/createlinks
2     --- smeserver-softethervpn-server-4.34.old/createlinks 2020-03-28 20:13:01.000000000 +0000
3     +++ smeserver-softethervpn-server-4.34/createlinks 2021-01-19 12:05:07.811395721 +0000
4     @@ -2,18 +2,28 @@
5    
6     use esmith::Build::CreateLinks qw(:all);
7    
8     -# Start and stop links
9     +# Start and stop links - SME9
10     +#service_link_enhanced("vpnserver", "S87", "7");
11    
12     -service_link_enhanced("vpnserver", "S87", "7");
13     -
14     -#todo a configuration event
15     -$event="softether";
16     -#event_link("action", $event , "20")
17     -
18     -templates2events("/etc/raddb/users", $event);
19     -templates2events("/etc/httpd/conf/httpd.conf", $event);
20     -
21     -safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/vpnserver");
22     +#Add an update event - auto executed by yum on install etc.
23     +$event="smeserver-softethervpn-server--update";
24     +foreach my $file (qw(
25     + /etc/systemd/system-preset/49-koozali.preset
26     + /etc/raddb/users
27     + /etc/httpd/conf/httpd.conf
28     +))
29     +{
30     + templates2events( $file, $event );
31     +}
32     +
33     +#action needed in case we have a systemd unit
34     +event_link("systemd-default", $event, "10");
35     +event_link("systemd-reload", $event, "50");
36     +#action specific to this package
37     +event_link("remoteaccess-update",$event, "30");
38     +#services we need to restart
39     safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
40     safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/radiusd");
41     safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/bridge");
42     +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/vpnserver");
43     +

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