/[smeserver]/rpms/e-smith-base/sme10/e-smith-base-5.8.1-bz11950-symlinked-logs.patch
ViewVC logotype

Diff of /rpms/e-smith-base/sme10/e-smith-base-5.8.1-bz11950-symlinked-logs.patch

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

Revision 1.4 by jpp, Sun Apr 17 13:05:45 2022 UTC Revision 1.5 by jpp, Mon Jun 20 04:35:51 2022 UTC
# Line 46  diff -Nur --no-dereference e-smith-base- Line 46  diff -Nur --no-dereference e-smith-base-
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
# Line 94  diff -Nur --no-dereference e-smith-base- Line 94  diff -Nur --no-dereference e-smith-base-
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


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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