jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:
automating more https://arghstudios.com service maintenance tasks: created & tested commands to truncate log files w/o stopping service & added aliases.
alias zeroStorytellerLog='sudo truncate -s 0 /var/log/storyteller/storytellerLog.txt'
alias zeroStorytellerErrorLog='sudo truncate -s 0 /var/log/storyteller/storytellerErrorLog.txt'
logs are just so I can compute latency (storytellerLog.txt) & notice assaults on the system (storytellerErrorLog.txt), so I’ll not worry about rotating them.