turnip-api logrotate stanzas will SIGHUP twice
Bug #2015860 reported by
Junien F
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
turnip |
Fix Released
|
High
|
Guruprasad |
Bug Description
Hi,
The turnip-api charm installs the following logrotate.d file :
/srv/turnip/
rotate 90
daily
dateext
delaycompress
compress
missingok
create 0644 turnip turnip
postrotate
service turnip-api reload
endscript
}
/srv/turnip/
rotate 90
daily
dateext
delaycompress
compress
missingok
create 0644 turnip turnip
postrotate
service turnip-api reload
endscript
}
This results in turnip-api being reloaded twice. Is there a reason for the 2 files being rotated separately instead of in a single stanza ?
Thanks
Related branches
~lgp171188/turnip:fix-logrotate-conf-turnip-api-two-service-reloads
Merged
into
turnip:master
- Colin Watson (community): Approve
-
Diff: 31 lines (+2/-14)1 file modifiedcharm/turnip-api/templates/logrotate.j2 (+2/-14)
Changed in turnip: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Guruprasad (lgp171188) |
Changed in turnip: | |
status: | Triaged → In Progress |
Changed in turnip: | |
status: | In Progress → Fix Committed |
Changed in turnip: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.