1 |
diff -Nur --no-dereference smeserver-fetchmail-1.6.old/createlinks smeserver-fetchmail-1.6/createlinks |
diff -Nur --no-dereference smeserver-fetchmail-1.6.old/createlinks smeserver-fetchmail-1.6/createlinks |
2 |
--- smeserver-fetchmail-1.6.old/createlinks 2022-07-28 10:33:25.211000000 -0400 |
--- smeserver-fetchmail-1.6.old/createlinks 2022-07-28 10:33:25.211000000 -0400 |
3 |
+++ smeserver-fetchmail-1.6/createlinks 2022-07-28 11:23:38.931000000 -0400 |
+++ smeserver-fetchmail-1.6/createlinks 2022-07-29 22:20:19.665000000 -0400 |
4 |
@@ -2,24 +2,21 @@ |
@@ -6,20 +6,17 @@ |
5 |
use esmith::Build::CreateLinks qw(:all); |
#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event |
|
# our event specific for updating with yum without reboot |
|
|
$event = 'smeserver-fetchmail-update'; |
|
|
-#add here the path to your templates needed to expand |
|
|
-#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event |
|
6 |
|
|
7 |
foreach my $file (qw( |
foreach my $file (qw( |
8 |
- /etc/systemd/system-preset/49-koozali.preset |
- /etc/systemd/system-preset/49-koozali.preset |
9 |
+ /etc/fetchmail |
+ /etc/fetchmail |
10 |
+ /etc/startmail |
+ /etc/startmail |
11 |
+ /etc/crontab |
+ /etc/crontab |
12 |
)) |
)) |
13 |
{ |
{ |
14 |
templates2events( $file, $event ); |
templates2events( $file, $event ); |
16 |
#action needed in case we have a systemd unit |
#action needed in case we have a systemd unit |
17 |
-event_link('systemd-default', $event, '10'); |
-event_link('systemd-default', $event, '10'); |
18 |
-event_link('systemd-reload', $event, '50'); |
-event_link('systemd-reload', $event, '50'); |
19 |
+event_link('systemd-default', $event, '88'); |
-#action specific to this package |
|
+event_link('systemd-reload', $event, '89'); |
|
|
+event_link('fetchmail-migrate-fetchids', $event, '89'); |
|
|
#action specific to this package |
|
20 |
-#event_link('action', $event, '30'); |
-#event_link('action', $event, '30'); |
21 |
-#services we need to restart |
-#services we need to restart |
22 |
#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service); |
-#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service); |
23 |
-#and Server Manager panel link |
-#and Server Manager panel link |
24 |
-#panel_link('somefunction', 'manager'); |
-#panel_link('somefunction', 'manager'); |
25 |
|
+event_link('systemd-default', $event, '88'); |
26 |
|
+event_link('systemd-reload', $event, '89'); |
27 |
|
+ |
28 |
|
|
29 |
#-------------------------------------------------- |
#-------------------------------------------------- |
30 |
# functions for manager panel |
# functions for manager panel |
|
diff -Nur --no-dereference smeserver-fetchmail-1.6.old/root/etc/e-smith/events/actions/fetchmail-migrate-fetchids smeserver-fetchmail-1.6/root/etc/e-smith/events/actions/fetchmail-migrate-fetchids |
|
|
--- smeserver-fetchmail-1.6.old/root/etc/e-smith/events/actions/fetchmail-migrate-fetchids 1969-12-31 19:00:00.000000000 -0500 |
|
|
+++ smeserver-fetchmail-1.6/root/etc/e-smith/events/actions/fetchmail-migrate-fetchids 2022-07-28 23:44:33.009000000 -0400 |
|
|
@@ -0,0 +1,13 @@ |
|
|
+#!/usr/bin/perl |
|
|
+ |
|
|
+my $original_file = "/run/lock/fetchmail/.fetchids"; |
|
|
+my $new_file = "/var/lib/fetchmail/.fetchids"; |
|
|
+ |
|
|
+exit 0 if ( -f $new_file ) ; |
|
|
+exit 0 unless ( -f $original_file ) ; |
|
|
+while ( -f /run/lock/fetchmail/fetchmail.pid ) { |
|
|
+ print "waiting for fetchmail to finish"; |
|
|
+ sleep 10; |
|
|
+} |
|
|
+# ideally suspend fetchmail of wait for it to stop |
|
|
+system("/usr/bin/mv $original_file $new_file") == 0 or warn "The move $original_file $new_file operation failed: $!"; |
|
31 |
diff -Nur --no-dereference smeserver-fetchmail-1.6.old/root/etc/e-smith/templates/etc/fetchmail/90fetchmail smeserver-fetchmail-1.6/root/etc/e-smith/templates/etc/fetchmail/90fetchmail |
diff -Nur --no-dereference smeserver-fetchmail-1.6.old/root/etc/e-smith/templates/etc/fetchmail/90fetchmail smeserver-fetchmail-1.6/root/etc/e-smith/templates/etc/fetchmail/90fetchmail |
32 |
--- smeserver-fetchmail-1.6.old/root/etc/e-smith/templates/etc/fetchmail/90fetchmail 2022-07-28 10:33:25.177000000 -0400 |
--- smeserver-fetchmail-1.6.old/root/etc/e-smith/templates/etc/fetchmail/90fetchmail 2022-07-28 10:33:25.177000000 -0400 |
33 |
+++ smeserver-fetchmail-1.6/root/etc/e-smith/templates/etc/fetchmail/90fetchmail 2022-07-28 11:17:18.575000000 -0400 |
+++ smeserver-fetchmail-1.6/root/etc/e-smith/templates/etc/fetchmail/90fetchmail 2022-07-28 11:17:18.575000000 -0400 |