1 |
jpp |
1.1 |
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 |
2 |
|
|
--- e-smith-base-5.8.1.old/root/etc/e-smith/events/actions/logrotate-migrate 2023-08-14 12:54:41.801000000 -0400 |
3 |
|
|
+++ e-smith-base-5.8.1/root/etc/e-smith/events/actions/logrotate-migrate 2023-08-14 14:42:57.439000000 -0400 |
4 |
|
|
@@ -43,10 +43,12 @@ |
5 |
|
|
fi |
6 |
|
|
done |
7 |
|
|
|
8 |
|
|
+# exit if we are running bootstrap-console.service, to avoid systemd queue loop |
9 |
|
|
+/usr/bin/systemctl --quiet is-active bootstrap-console.service && exit 0; |
10 |
|
|
# restart the needed services |
11 |
|
|
if [ $found -gt 0 ] ; then |
12 |
|
|
/usr/bin/systemctl daemon-reload > /dev/null 2>/dev/null |
13 |
|
|
- /usr/bin/systemctl reload httpd-*.service > /dev/null 2>/dev/null |
14 |
|
|
- /usr/bin/systemctl restart rsyslog.service > /dev/null 2>/dev/null |
15 |
|
|
+ /usr/bin/systemctl --quiet is-active httpd-*.service && /usr/bin/systemctl reload httpd-*.service > /dev/null 2>/dev/null |
16 |
|
|
+ /usr/bin/systemctl --quiet is-active rsyslog.service && /usr/bin/systemctl restart rsyslog.service > /dev/null 2>/dev/null |
17 |
|
|
fi |
18 |
|
|
|