Index
Subject
: Re: LUG: Anything wrong with this cron entry?
From
: "Daniel Underwood" <daniel.underwood@ncsu.[redacted]>
Date
: Fri, 07 Oct 2011 17:08:15 -0400
Parent
I see the log file now. And it showed the problem:
Oct 1 00:00:01 pc15-373 rsnapshot[31635]: /usr/bin/rsnapshot monthly: ERROR: Lockfile /var/run/rsnapshot.pid exists and so does its process, can not continue
The problem was that monthly couldn't seize the lock because hourly was running. Now I've modified it so that the hourly and monthly calls are 30 minutes apart. This should fix things.
Thanks for the help.
On Friday, October 07, 2011 4:09 PM, "Kevin Hunter" <hunteke@earlham.[redacted]> wrote:
> At 3:11pm -0400 Fri, 07 Oct 2011, Daniel Underwood wrote:
> > No, didn't check syslog. Tried to check it now, but its history
> > doesn't extend to the first of this month.
>
> Hmm ... Do you not have older log files? On most systems I
> administrate, logrotate maintains a list of older logs files, up to some
> specified number of days. For instance, on my desktop machine for which
> I don't really need log files for very long, it only stores the most
> recent week:
>
> $ ll syslog*
> -rw-r----- 1 syslog adm 34K 2011-10-07 16:04 syslog
> -rw-r----- 1 syslog adm 167K 2011-10-07 10:34 syslog.1
> -rw-r----- 1 syslog adm 50K 2011-10-06 19:48 syslog.2.gz
> -rw-r----- 1 syslog adm 93K 2011-10-05 10:38 syslog.3.gz
> -rw-r----- 1 syslog adm 42K 2011-10-03 00:40 syslog.4.gz
> -rw-r----- 1 syslog adm 23K 2011-10-02 00:47 syslog.5.gz
> -rw-r----- 1 syslog adm 42K 2011-10-01 02:57 syslog.6.gz
> -rw-r----- 1 syslog adm 45K 2011-09-30 12:08 syslog.7.gz
>
> Meaning that you should be able to see as far back as your logrotate is
> configured to store logs. Now, if cron isn't even running, or otherwise
> isn't logging, that's a different story ...
>
> Cheers,
>
> Kevin
>
--
Daniel Underwood
North Carolina State University
PhD Student - Industrial Engineering
email: daniel.underwood@ncsu.[redacted]
phone: XXX.302.3291
fax: XXX.515.5281
web: http://www4.ncsu.edu/~djunderw/