/alcasar.sh |
---|
1840,7 → 1840,7 |
[ -e /etc/sudoers.default ] || cp /etc/sudoers /etc/sudoers.default |
cp -f $DIR_CONF/sudoers /etc/. ; chmod 440 /etc/sudoers ; chown root:root /etc/sudoers |
$SED "s?^Host_Alias.*?Host_Alias LAN_ORG=$PRIVATE_NETWORK/$PRIVATE_NETMASK,localhost #réseau de l'organisme?g" /etc/sudoers |
# Modify some logrotate files (gammu, ulogd) |
# prise en compte de la rotation des logs sur 1 an (concerne mysql, httpd, dansguardian, radiusd, ulogd) |
cp -f $DIR_CONF/logrotate.d/* /etc/logrotate.d/ |
chmod 644 /etc/logrotate.d/* |
# rectification sur versions précédentes de la compression des logs |
/conf/logrotate.d/squid |
---|
0,0 → 1,23 |
/var/log/squid/cache.log { |
weekly |
rotate 5 |
copytruncate |
compress |
notifempty |
missingok |
} |
/var/log/squid/store.log { |
weekly |
rotate 5 |
copytruncate |
compress |
notifempty |
missingok |
# This script asks squid to rotate its logs on its own. |
# Restarting squid is a long process and it is not worth |
# doing it just to rotate logs |
postrotate |
/usr/sbin/squid -k rotate |
endscript |
} |
Property changes: |
Added: svn:keywords |
+Id Author Date |
\ No newline at end of property |
/conf/logrotate.d/dansguardian |
---|
0,0 → 1,13 |
/var/log/dansguardian/access.log { |
create 644 dansguardian dansguardian |
rotate 5 |
dateext |
weekly |
sharedscripts |
prerotate |
service dansguardian stop |
endscript |
postrotate |
service dansguardian start |
endscript |
} |
Property changes: |
Added: svn:keywords |
+Id Author Date |
\ No newline at end of property |
/conf/logrotate.d/syslog |
---|
0,0 → 1,15 |
# WARNING : don't use * wildcard as extension |
# (glob in logrotate will try to rotate all files instead of |
# only the basenames of the logs, i.e. it will rotate |
# already rotated files and recompress them, taking |
# exponential time...) |
/var/log/auth.log /var/log/syslog /var/log/user.log /var/log/secure /var/log/messages /var/log/boot.log /var/log/mail/errors /var/log/mail/info /var/log/mail/warnings /var/log/cron/errors /var/log/cron/info /var/log/cron/warnings /var/log/kernel/errors /var/log/kernel/info /var/log/kernel/warnings /var/log/lpr/errors /var/log/lpr/info /var/log/lpr/warnings /var/log/news/news.err /var/log/news/news.notice /var/log/news/news.crit /var/log/daemons/errors /var/log/daemons/info /var/log/daemons/warnings /var/log/explanations { |
sharedscripts |
rotate 5 |
weekly |
postrotate |
[ -f /var/run/syslog-ng.pid ] && kill -HUP `cat /var/run/syslog-ng.pid` || true |
[ -f /var/run/syslogd.pid ] && kill -HUP `cat /var/run/syslogd.pid` || true |
endscript |
} |
Property changes: |
Added: svn:keywords |
+Id Author Date |
\ No newline at end of property |
/conf/logrotate.d/httpd |
---|
0,0 → 1,27 |
/var/log/httpd/access_log /var/log/httpd/ssl_access_log{ |
rotate 12 |
monthly |
dateext |
missingok |
notifempty |
compress |
prerotate |
/etc/rc.d/init.d/httpd closelogs > /dev/null 2>&1 |
endscript |
postrotate |
/etc/rc.d/init.d/httpd closelogs > /dev/null 2>&1 |
endscript |
} |
/var/log/httpd/apache_runtime_status /var/log/httpd/ssl_mutex /var/log/httpd/error_ /var/log/httpd/ssl_request_log { |
rotate 4 |
monthly |
missingok |
notifempty |
compress |
prerotate |
/etc/rc.d/init.d/httpd closelogs > /dev/null 2>&1 |
endscript |
postrotate |
/etc/rc.d/init.d/httpd closelogs > /dev/null 2>&1 |
endscript |
} |
Property changes: |
Added: svn:keywords |
+Id Author Date |
\ No newline at end of property |
/conf/logrotate.d/dnsmasq |
---|
0,0 → 1,10 |
/var/log/dnsmasq/queries.log /var/log/dnsmasq/lease.log{ |
missingok |
rotate 365 |
daily |
dateext |
sharedscripts |
postrotate |
/etc/init.d/dnsmasq restart |
endscript |
} |
Property changes: |
Added: svn:keywords |
+Id Author Date |
\ No newline at end of property |
/conf/logrotate.d/radiusd |
---|
0,0 → 1,7 |
/var/log/radius/radacct/*/detail /var/log/radius/*.log /var/log/radius/radutmp /var/log/radius/radwtmp { |
monthly |
rotate 4 |
nocreate |
missingok |
compress |
} |
Property changes: |
Added: svn:keywords |
+Id Author Date |
\ No newline at end of property |