Open awwad opened 8 years ago
(Also, why are these logging as root...?)
( Ah...
$SUDO_CMD python $CLEARINGHOUSE_DIR/lockserver/lockserver_daemon.py >>$LOG_DIR/lockserver.log 2>&1 &
While the script is being run as the clearinghouse user, the redirect is still technically as root. I suppose we could move that into the script. I suppose there's probably also some single-line-fu way of making the redirect happen as the clearinghouse user, instead of moving the logging into each of the scripts?
EDIT: Single-line-fu solutions exist in this thread. In short: 'tee' command, or explicitly starting a shell with -c (sudo sh -c 'ls -hal /root/ > /root/test.out'
)
)
As for the original issue:
What ever happened to this issue? I don't see weekly log rotation anywhere (nor size-based).
The clearinghouse logs seem to grow too quickly and not be culled or rotated.
These logs started 3 weeks (just over 21 days) before this snapshot, (AFAICT) involve no rapidly recurring errors or other anomalies, and occur on a very low traffic test clearinghouse accessible only on the .poly.edu network: