Skip to content

Commit 2ef2776

Browse files
committed
packaging: fixed logrotate
1 parent 1a37009 commit 2ef2776

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

packaging/debian/logrotate

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,25 @@
1010
[ -e /var/run/mamonsu/mamonsu.pid ] && /etc/init.d/mamonsu restart >/dev/null
1111
endscript
1212
}
13+
14+
/var/log/mamonsu/mamonsu.log {
15+
daily
16+
rotate 7
17+
compress
18+
missingok
19+
notifempty
20+
create 0640 mamonsu mamonsu
21+
sharedscripts
22+
postrotate
23+
[ -e /var/run/mamonsu/mamonsu.pid ] && /etc/init.d/mamonsu restart >/dev/null
24+
endscript
25+
}
26+
27+
/var/log/mamonsu/localhost.log {
28+
daily
29+
rotate 7
30+
compress
31+
missingok
32+
notifempty
33+
create 0640 mamonsu mamonsu
34+
}

packaging/rpm/SOURCES/mamonsu-logrotate.in

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,25 @@
1010
[ -e /var/run/mamonsu/mamonsu.pid ] && /etc/init.d/mamonsu restart >/dev/null
1111
endscript
1212
}
13+
14+
/var/log/mamonsu/mamonsu.log {
15+
daily
16+
rotate 7
17+
compress
18+
missingok
19+
notifempty
20+
create 0640 mamonsu mamonsu
21+
sharedscripts
22+
postrotate
23+
[ -e /var/run/mamonsu/mamonsu.pid ] && /etc/init.d/mamonsu restart >/dev/null
24+
endscript
25+
}
26+
27+
/var/log/mamonsu/localhost.log {
28+
daily
29+
rotate 7
30+
compress
31+
missingok
32+
notifempty
33+
create 0640 mamonsu mamonsu
34+
}

0 commit comments

Comments
 (0)