Created
October 3, 2014 17:35
-
-
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 …
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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