[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cron jobs more often than daily



On Mon, Jan 05, 1998 at 11:31:09PM +1100, Hamish Moffatt wrote:
> On Mon, Jan 05, 1998 at 01:26:56PM +0100, Martin Schulze wrote:
> > On Mon, Jan 05, 1998 at 09:48:42PM +1100, Hamish Moffatt wrote:
> > > However, there's no suitable user for this and it needs
> > > to run as root anyway to reset the accounting stats.
> > > Am I stuck with daily?
> > 
> > Why not add a job like:
> > 
> > */15 *	* * *	root	/usr/sbin/ipac-cron
> > 
> > to /etc/crontab?  The predecessor of at has done this, too.
> 
> Policy 2.3.0.1 says
> 
> 3.5. Cron jobs
> --------------
> 
>      Packages may not touch the configuration file `/etc/crontab', nor may
>      they modify the files in `/var/spool/cron/crontabs'.
> 
> Doesn't this rule this out?

Oups.  Well, rules exist for breaking them... An old idiom...

Then your only chance is to write an ipacd that forks, lets the daughter
call the ipcac-cron script , waits 15 mins and forks again.  Started
via /etc/init.d/ipac.

Well, I know which version I would prefer but maybe the second one is
better as you can control that you start your script only if the most
recent child has terminated.

Regards

	Joey

-- 
  / Martin Schulze  *  joey@infodrom.north.de  *  26129 Oldenburg /
 /                            Erfahrung ist eine nützliche Sache /
/ Leider macht man sie immer erst kurz nachdem man sie brauchte /

Attachment: pgpowxuoUVe6I.pgp
Description: PGP signature


Reply to: