[packages/ejabberd] - same for logrotate, don't run ejabberdctl from run
arekm
arekm at pld-linux.org
Wed Oct 15 06:56:59 CEST 2014
commit 2722a389a0ef1070228221eb7c8cc861440e5093
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Oct 15 06:56:56 2014 +0200
- same for logrotate, don't run ejabberdctl from run
ejabberd.logrotate | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ejabberd.logrotate b/ejabberd.logrotate
index 719abdd..bbb9a76 100644
--- a/ejabberd.logrotate
+++ b/ejabberd.logrotate
@@ -5,7 +5,7 @@
nocreate
sharedscripts
postrotate
- /usr/sbin/ejabberdctl reopen_log
+ /bin/su -s /bin/sh - jabber /usr/sbin/ejabberdctl reopen_log
# ejabberd tries to rename old logs on 'reopen_log'
# in some cases this may leave empty *.0 files
for f in /var/log/ejabberd/*.0 ; do
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ejabberd.git/commitdiff/2722a389a0ef1070228221eb7c8cc861440e5093
More information about the pld-cvs-commit
mailing list