Last active
June 18, 2019 07:02
-
-
Save wvides/73b1a3958aba063ef2c86ddc5e61bd3a to your computer and use it in GitHub Desktop.
Revisions
-
wvides revised this gist
Jun 7, 2019 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ while true; do today=`date '+%Y_%m_%d'` todaylong=`date '+%Y_%m_%d__%H_%M_%S'` echo "${todaylong}" >> "${today}.log" sleep 30m done -
wvides created this gist
Jun 7, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ /var/lib/rotateme/*.log { daily maxage 1 missingok compress }