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 ..
Created attachment 138265 [details] patch to /etc:logrotate.d/ejabberd
Tired ... a lot of typos in my bug report but the patch just be OK.
... should just be ... (really tired:/)
Thanks for the patch. Fix in the next release.