File tree Expand file tree Collapse file tree 1 file changed +5
-22
lines changed Expand file tree Collapse file tree 1 file changed +5
-22
lines changed Original file line number Diff line number Diff line change 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
1
/var/log/mamonsu/mamonsu.log {
15
2
daily
16
3
rotate 7
20
7
create 0640 mamonsu mamonsu
21
8
sharedscripts
22
9
postrotate
23
- [ -e /var/run/mamonsu/mamonsu.pid ] && /etc/init.d/mamonsu restart >/dev/null
10
+ if [ -d "/run/systemd/system" -a -x "/bin/systemctl" ]; then
11
+ /bin/systemctl condrestart mamonsu >/dev/null
12
+ else
13
+ /etc/init.d/mamonsu condrestart >/dev/null
14
+ fi
24
15
endscript
25
16
}
26
17
27
- /var/log/mamonsu/localhost.log {
28
- daily
29
- rotate 7
30
- compress
31
- missingok
32
- notifempty
33
- create 0640 mamonsu mamonsu
34
- }
You can’t perform that action at this time.
0 commit comments