File tree Expand file tree Collapse file tree 12 files changed +48
-8
lines changed Expand file tree Collapse file tree 12 files changed +48
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ if [ ! -f /var/log/mail.log ]; then
3
+ touch /var/log/mail.log
4
+ chown root:adm /var/log/mail.log
5
+ chmod 640 /var/log/mail.log
6
+ fi
2
7
/usr/bin/tail -f /var/log/mail.log
Original file line number Diff line number Diff line change 1
1
/var/www/logs/*.log {
2
2
daily
3
+ copytruncate
3
4
missingok
4
- rotate 3
5
+ rotate 7
5
6
compress
6
7
delaycompress
7
8
notifempty
8
- create 0640 www-data adm
9
9
sharedscripts
10
10
prerotate
11
11
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ if [ ! -f /var/log/mail.log ]; then
3
+ touch /var/log/mail.log
4
+ chown root:adm /var/log/mail.log
5
+ chmod 640 /var/log/mail.log
6
+ fi
2
7
/usr/bin/tail -f /var/log/mail.log
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ if [ ! -f /var/log/mail.log ]; then
3
+ touch /var/log/mail.log
4
+ chown root:adm /var/log/mail.log
5
+ chmod 640 /var/log/mail.log
6
+ fi
2
7
/usr/bin/tail -f /var/log/mail.log
Original file line number Diff line number Diff line change 1
1
/var/www/logs/*.log {
2
2
daily
3
+ copytruncate
3
4
missingok
4
- rotate 3
5
+ rotate 7
5
6
compress
6
7
delaycompress
7
8
notifempty
8
- create 0640 www-data adm
9
9
sharedscripts
10
10
prerotate
11
11
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ if [ ! -f /var/log/mail.log ]; then
3
+ touch /var/log/mail.log
4
+ chown root:adm /var/log/mail.log
5
+ chmod 640 /var/log/mail.log
6
+ fi
2
7
/usr/bin/tail -f /var/log/mail.log
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ if [ ! -f /var/log/mail.log ]; then
3
+ touch /var/log/mail.log
4
+ chown root:adm /var/log/mail.log
5
+ chmod 640 /var/log/mail.log
6
+ fi
2
7
/usr/bin/tail -f /var/log/mail.log
Original file line number Diff line number Diff line change 1
1
/var/www/logs/*.log {
2
2
daily
3
+ copytruncate
3
4
missingok
4
- rotate 3
5
+ rotate 7
5
6
compress
6
7
delaycompress
7
8
notifempty
8
- create 0640 www-data adm
9
9
sharedscripts
10
10
prerotate
11
11
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ if [ ! -f /var/log/mail.log ]; then
3
+ touch /var/log/mail.log
4
+ chown root:adm /var/log/mail.log
5
+ chmod 640 /var/log/mail.log
6
+ fi
2
7
/usr/bin/tail -f /var/log/mail.log
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ if [ ! -f /var/log/mail.log ]; then
3
+ touch /var/log/mail.log
4
+ chown root:adm /var/log/mail.log
5
+ chmod 640 /var/log/mail.log
6
+ fi
2
7
/usr/bin/tail -f /var/log/mail.log
You can’t perform that action at this time.
0 commit comments