Bug 210366

Summary: ejabberd logrotate buglet
Product: [Fedora] Fedora Reporter: Jérôme Benoit <jerome.benoit>
Component: ejabberdAssignee: Jeffrey C. Ollie <jeff>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: noarch   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-11 20:37:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to /etc:logrotate.d/ejabberd none

Description Jérôme Benoit 2006-10-11 18:03:01 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.0.7) Gecko/20060913 Fedora/1.5.0.7-1.fc5 Firefox/1.5.0.7 pango-text

Description of problem:
log rotation in not done properly because of a bugglet in /etc/logrotate.d/ejabberd

Version-Release number of selected component (if applicable):
1.1.2

How reproducible:
Always


Steps to Reproduce:
1. just run /etc/cron.daily/logrotate
2.
3.

Actual Results:
/etc/cron.daily/logrotate:

sh: -c: line 1: unexpected EOF while looking for matching `"'
sh: -c: line 2: syntax error: unexpected end of file
error: error running postrotate script for /var/log/ejabberd/ejabberd.log /var/log/ejabberd/sasl.log

Expected Results:
log rotation of ejabberd log just be done with restart

Additional info:
juste do as a post rotate script :

runuser -s /bin/bash - ejabberd -c "erl -pa /usr/lib/ejabberd-1.1.2/ebin -noinput -sname ejabberdctl -s ejabberd_ctl -extra ejabberd@`hostname -s` reopen-log" >/dev/null 2>/dev/null || true

instead of  

runuser -s /bin/bash - ejabberd -c "erl -pa /usr/lib/ejabberd-1.1.2/ebin -noinput -sname ejabberdctl -s ejabberd_ctl -extra ejabberd@`hostname -s` reopen-log >/dev/null 2>/dev/null || true (without closing " tag woth runsuer ..

Comment 1 Jérôme Benoit 2006-10-11 18:13:39 UTC
Created attachment 138265 [details]
patch to /etc:logrotate.d/ejabberd

Comment 2 Jérôme Benoit 2006-10-11 18:17:11 UTC
Tired ... a lot of typos in my bug report but the patch just be OK.

Comment 3 Jérôme Benoit 2006-10-11 18:22:00 UTC
... should just be ... (really tired:/)

Comment 4 Jeffrey C. Ollie 2006-10-11 20:37:55 UTC
Thanks for the patch.  Fix in the next release.