Cron wont restart rsyslog

view full story

http://www.unix.com – Howdy, I am nearly tearing my hair out as Cron isn't running a script that should work. I am interning for a company. Their rsyslog keeps track of traffic that gets past a firewall. It creates two files called pix.log and pix2.log. Every time something happens with the firewall, it adds to these files. The files are getting a bit big after a while, so my employer wants a script to move the files everyday to another location, rename them with the date, restart rsyslog, and start anew. I have never scripted anything in my life. So, after a few days of researching, I created this shell script (HowTos)