Page 1 of 1

WAPT Logrotate Modification

Published: January 4, 2017 - 9:25 AM
by Aguay
Hello TISman and TISwoman,

We appreciate the use of logrotate in the wapt server, however, there is a modification to be made.

In the wapt-server logrotate file (https://github.com/tranquilit/WAPT/blob ... -logrotate), line 7 should be changed:

`/etc/init.d/waptserver restart > /dev/null`

to

`/etc/init.d/waptserver restart &> /dev/null`.


Otherwise, we get a CRON email with the restart output:

`/etc/cron.daily/logrotate:
[uWSGI] getting INI configuration from /opt/wapt/conf/waptserver.ini`.


This could be unnecessary logging.
If necessary, I'm happy to submit a pull request, and you can merge it.

See you soon. ;)

Re: Logrotate WAPT modification

Published: August 30, 2017 - 12:55 PM
by gildasc
With a Jessie/sid, applying the suggested modification, we get this in the email:
/etc/cron.daily/logrotate:
Restarting waptserver:
..
I think it's because

Code: Select all

&>
This is specific to bash, and cron jobs are executed in Dash since version 5. I suggest instead:

Code: Select all

service waptserver restart > /dev/null 2>&1