shithub: rc

ref: 92edb4bfea126fecf69586dec6a95bc52812283c
dir: /README.md/

View raw version
# rc-scripts

A collection of rc scripts.

## bunsay

glenda says was you think.

cpu% bunsay I only eat Western Timothy hay.

I only eat Western Timothy hay.
                 __
     \          /  )     
      \        /' /    __ 
        _.----'-./  _-"  )
      -"         "v"  _-' 
    ."             'Y"    
   |                |     
   | o     o        |     
   |  .><.          |     
   |  "Ll"         /      
   '.             |       
    |             |       
    \             )       
    / .          /'\      *
    '-(_/,__.--^--"  *      * 
                   *     *        *

## logrotate

A multi-generational log rotator.  Runs as the hostowner
from cron.  Take the defaults or edit these 4 varables in
the script:

logdir		Where your log files live if not /sys/log
logfiles 	What files you want rotated
generations	How many generations to you want to keep
maxsize		How big can the logfile get before its rotated

Run from cron at midnight every sunday
0 0 * * 0 $sysname pathto/logrotate

## surl

A URL shortener.  Assumes you're running a web server and
want to shorten URLs.

Set the site and surl variables, then mkdir $surl