diff --git a/README.md b/README.md index 26b5f2d..6ce4000 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ sudo apt-get install -y nodejs sudo useradd --system --create-home --shell /usr/sbin/nologin runewager || true sudo mkdir -p /var/www/html/Runewager sudo chown -R "$USER":"$USER" /var/www/html/Runewager +# Keep directory casing exactly as "Runewager" to match systemd paths # 3) Clone or update repo cd /var/www/html/Runewager diff --git a/runewager.logrotate b/runewager.logrotate index c6e117f..c363d8d 100644 --- a/runewager.logrotate +++ b/runewager.logrotate @@ -1,4 +1,4 @@ -/var/www/html/Runewager/logs/runewager-1.log /var/www/html/Runewager/logs/crash.log { +/var/www/html/Runewager/logs/runewager*.log /var/www/html/Runewager/logs/crash.log /var/www/html/runewager/logs/runewager*.log /var/www/html/runewager/logs/crash.log { daily size 5M rotate 7 @@ -6,9 +6,6 @@ notifempty compress delaycompress + copytruncate create 0640 runewager runewager - sharedscripts - postrotate - /bin/systemctl try-restart runewager.service >/dev/null 2>&1 || true - endscript }