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

Re: [johannes@caldera.de: Comments on Chapter 17 (cron) of the LSB Spec]



On Thu, Dec 07, 2000 at 02:36:44PM +0000, Bjornar Ness wrote:
> >     /etc/cron.d/
> >                &
> >                +-Monthly  periodic scripts directories (Capitalized Names)
> >                +-Weekly
> >                +-Daily
> >                +-Hourly
> 
> ...I disagrea to the full with your Uppercasing. I has no point at all.
> monthly,weekly,daily,hourly is nice.. and makes no difference at all.
> Remember: the filesystem is not ment for graphical presentation ;)

Tagging periodic Directories by Capital letters has a technical
advantage: It allows script and rpm magic. See Nr. 4 of the Proposal.  

o    Say you want to deinstall a package, which dropped a 
     soft link /etc/cron.d/Daily/45foobar to a script foobar
     which is part of the package.

     The local sysadmin moved the link to /etc/cron.d/Monthly. 
      
     When deinstalling, you want to deinstall this link:
     Just do a "rm /etc/cron.d/[A-Z]*/[0-9][0-9]foobar".
      

o    By using using soft links (as proposed as Nr. 4 in this proposal) 
     it is even possible to cleanly update packages in a way that 
     respects the "how often" decision of the local sysadmin. Just 
     update the link target and do not touch the link if it is present:

[ -x /etc/cron.d/[A-Z]*/[0-9][0-9]foobar ] || ln -s TARGET /etc/cron.d/45foobar

-- 
     ______   ___        
    /  ___/__/  /                 Caldera (Deutschland) GmbH          
   /  /_/ _  / /__        Naegelsbachstr. 49c, 91052 Erlangen, Germany 
  /_____/_/ /____/            software developer / lsb project 
 ==== /____/ =====   Dipl. Inf. Johannes Poehlmann, mail: jhp@caldera.de
Caldera OpenLinux    phone: ++49 9131 7192 336, fax: ++49 9131 7192 399



Reply to: