46 |
diff -Nur --no-dereference e-smith-base-5.8.1.old/root/etc/e-smith/events/actions/logrotate-migrate e-smith-base-5.8.1/root/etc/e-smith/events/actions/logrotate-migrate |
diff -Nur --no-dereference e-smith-base-5.8.1.old/root/etc/e-smith/events/actions/logrotate-migrate e-smith-base-5.8.1/root/etc/e-smith/events/actions/logrotate-migrate |
47 |
--- e-smith-base-5.8.1.old/root/etc/e-smith/events/actions/logrotate-migrate 1969-12-31 19:00:00.000000000 -0500 |
--- e-smith-base-5.8.1.old/root/etc/e-smith/events/actions/logrotate-migrate 1969-12-31 19:00:00.000000000 -0500 |
48 |
+++ e-smith-base-5.8.1/root/etc/e-smith/events/actions/logrotate-migrate 2022-04-16 23:59:07.124000000 -0400 |
+++ e-smith-base-5.8.1/root/etc/e-smith/events/actions/logrotate-migrate 2022-04-16 23:59:07.124000000 -0400 |
49 |
@@ -0,0 +1,51 @@ |
@@ -0,0 +1,52 @@ |
50 |
+#!/bin/bash |
+#!/bin/bash |
51 |
+# this script is to migrate old symlink log to regular file in order |
+# this script is to migrate old symlink log to regular file in order |
52 |
+# to be handled by logrotate |
+# to be handled by logrotate |
94 |
+ |
+ |
95 |
+# restart the needed services |
+# restart the needed services |
96 |
+if [ $found > 0 ] ; then |
+if [ $found > 0 ] ; then |
97 |
|
+ /usr/bin/systemctl daemon-reload > /dev/null 2>/dev/null |
98 |
+ /usr/bin/systemctl restart httpd-*.service > /dev/null 2>/dev/null |
+ /usr/bin/systemctl restart httpd-*.service > /dev/null 2>/dev/null |
99 |
+ /usr/bin/systemctl restart rsyslog.service > /dev/null 2>/dev/null |
+ /usr/bin/systemctl restart rsyslog.service > /dev/null 2>/dev/null |
100 |
+fi |
+fi |