-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from NethServer/top_talkers
- Loading branch information
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# Delete files not updated in the last 30 days | ||
[ -d /var/tmp/ntopng/ ] && /usr/bin/find /var/tmp/ntopng/* -mindepth 1 -type f -mtime +30 -delete > /dev/null | ||
[ -d /var/tmp/ntopng/ ] && /usr/bin/find /var/tmp/ntopng/* -mindepth 1 -type f -mtime +30 -delete &> /dev/null |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# top_talkers.db grows too much, just clean it once in a while | ||
|
||
/usr/bin/find /var/tmp/ntopng/ -name top_talkers.db -delete | ||
/usr/bin/systemctl restart ntopng |