14 |
$event = "ssl-update"; |
$event = "ssl-update"; |
15 |
templates2events("/etc/httpd/conf/httpd.conf", $event); |
templates2events("/etc/httpd/conf/httpd.conf", $event); |
16 |
-safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
-safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
17 |
+isafe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
+safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); |
18 |
+ |
+ |
19 |
+#-------------------------------------------------- |
+#-------------------------------------------------- |
20 |
+# actions for post-install event |
+# actions for post-install event |
57 |
+ missingok |
+ missingok |
58 |
+ notifempty |
+ notifempty |
59 |
+ sharedscripts |
+ sharedscripts |
60 |
+ rotate {$httpd-e-smith{'KeepNumberLog'} || $rsyslog{'KeepNumber'} || 10 } |
+ rotate {${'httpd-e-smith'}{'KeepNumberLog'} || $rsyslog{'KeepNumber'} || 10 } |
61 |
+ maxsize {$httpd-e-smith{'MaxSizeLog'} || $rsyslog{'MaxSize'} || "100M";} |
+ maxsize {${'httpd-e-smith'}{'MaxSizeLog'} || $rsyslog{'MaxSize'} || "100M";} |
62 |
+ maxage {$httpd-e-smith{'PurgeLengthLog'} || $rsyslog{'PurgeLength'} || 95;} |
+ maxage {${'httpd-e-smith'}{'PurgeLengthLog'} || $rsyslog{'PurgeLength'} || 95;} |
63 |
+ { $OUT = "compress " unless ( ($httpd-e-smith{'CompressLog'} || "disabled") eq "disabled" );} |
+ { $OUT = "#default compress see logrotate.conf" ; $OUT = "compress " unless ( (${'httpd-e-smith'}{'CompressLog'} || "disabled") eq "disabled" );} |
64 |
+ delaycompress |
+ delaycompress |
65 |
+ postrotate |
+ postrotate |
66 |
+ /bin/systemctl restart httpd-*.service > /dev/null 2>/dev/null || true |
+ /bin/systemctl restart httpd-*.service > /dev/null 2>/dev/null || true |