Skip to content

Instantly share code, notes, and snippets.

@Andrewpk
Created October 3, 2014 17:35
Show Gist options
  • Save Andrewpk/c877722fa096d511e925 to your computer and use it in GitHub Desktop.
Save Andrewpk/c877722fa096d511e925 to your computer and use it in GitHub Desktop.
If you're running a synology with dsm v4 (you have a /var/log/synolog directory) and you have lots of traffic, your connection log will probably get full. For some reason this doesn't rotate, so put this script somewhere or add these commands to a scheduled task. If your connection log fills up your filesystem (all of /tmp is used) you won't be …
#!/bin/ash
rm /var/log/synolog/synoconn.log
rm /tmp/synolog*
/usr/syno/etc/rc.d/S22syslogng.sh restart
/usr/syno/etc/rc.d/S97apache-sys.sh restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment