We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0190077 commit c85d5a4Copy full SHA for c85d5a4
packaging/rpm/SOURCES/mamonsu-logrotate.in
@@ -1,16 +1,3 @@
1
-/var/log/mamonsu/agent.log {
2
- daily
3
- rotate 7
4
- compress
5
- missingok
6
- notifempty
7
- create 0640 mamonsu mamonsu
8
- sharedscripts
9
- postrotate
10
- [ -e /var/run/mamonsu/mamonsu.pid ] && /etc/init.d/mamonsu restart >/dev/null
11
- endscript
12
-}
13
-
14
/var/log/mamonsu/mamonsu.log {
15
daily
16
rotate 7
@@ -20,15 +7,11 @@
20
create 0640 mamonsu mamonsu
21
sharedscripts
22
postrotate
23
+ if [ -d "/run/systemd/system" -a -x "/bin/systemctl" ]; then
+ /bin/systemctl condrestart mamonsu >/dev/null
+ else
+ /etc/init.d/mamonsu condrestart >/dev/null
+ fi
24
endscript
25
}
26
17
27
-/var/log/mamonsu/localhost.log {
28
29
30
31
32
33
34
0 commit comments