PIKT

Samples: Unwanted Files

PIKT Logo
Home FAQ News Intro Samples Tutorial Reference Software Authors Licensing SiteSearch


This files_unwanted_objects.cfg example specifies unwanted files--files whose existence might trigger a warning, or that PIKT might automatically delete or move aside.

///////////////////////////////////////////////////////////////////////////////
//
// files_unwanted_objects.cfg
//
///////////////////////////////////////////////////////////////////////////////

FilesUnwanted       // unwanted files whose presence prompts a warning,
                    // or possibly some action

// the format of this stanza is
// 
//      <file>                       :       <command>
// 
// a . (dot) says just to report file existence, else execute the <command>

///////////////////////////////////////////////////////////////////////////////

        /etc/nologin            :       .

///////////////////////////////////////////////////////////////////////////////

#if solaris

        /etc/rc3.d/S50apache    : =mv /etc/rc3.d/S50apache /etc/rc3.d/xS50apache
        /etc/rc3.d/S76snmpdx    : =mv /etc/rc3.d/S76snmpdx /etc/rc3.d/xS76snmpdx
        /etc/rc3.d/S77dmi       : =mv /etc/rc3.d/S77dmi /etc/rc3.d/xS77dmi
        /etc/rc3.d/S80mipagent  : =mv /etc/rc3.d/S80mipagent
                                      /etc/rc3.d/xS80mipagent

#endif  // solaris

///////////////////////////////////////////////////////////////////////////////

#if solaris | linux

#  if nosendmail
        /etc/rc2.d/S88sendmail  : =mv /etc/rc2.d/S88sendmail
                                      /etc/rc2.d/xS88sendmail
#  endif

#endif  // solaris | linux

[...]

///////////////////////////////////////////////////////////////////////////////
On the piktmaster system, we would install the FilesUnwanted.obj file to each PIKT slave system with, for example:
# piktc -iv +O FilesUnwanted +H all        [or: ... -H downsys]

[For more examples, see Samples.]

Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software | Authors | Licensing | SiteSearch
Links | SiteIndex | Pikt-Users | Pikt-Workers | Contribute | ContactUs | Top of Page
Page best viewed at 1024x768.   Page last updated 2005-06-22.
This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.
Copyright © 1998-2005 Robert Osterlund.  All rights reserved.

Computer Books at Amazon.com

The Book of Webmin
The Book of Webmin

Essential CVS
Essential CVS

SuSE Linux Enterprise Server 9 Administrator's Handbook
SuSE Linux Enterprise Server 9 Administrator's Handbook

Managing Linux Systems with Webmin
Managing Linux Systems with Webmin

Automating Unix and Linux Administration
Automating Unix and Linux Administration