Createhomedir, Log rolling scripts, Createhomedir 594 – Apple Mac OS X Server (version 10.2.3 or later) User Manual
Page 594: Log rolling scripts 594

594
Chapter 17
createhomedir
Use createhomedir to create AFP or NFS home directories for one or more users.
m This tool is especially useful just after creating a large number of users you want to have a
home directory.
m Using createhomedir is the only way to automate the creation of NFS home directories.
See “Using createhomedir to Create Home Directories” on page 165 for more information
about createhomedir.
Log Rolling Scripts
Three predefined scripts are executed automatically to reclaim space used on your server for
log files generated by
m Apple file service
m Windows service
m Web service
m Web performance cache
m Mail service
m Print service
The scripts use values in predefined configuration files to determine whether and how to
reclaim space:
m The script /etc/periodic/daily/600.daily.server runs daily. Its configuration file is
/etc/diskspacemonitor/daily.server.conf.
m The script /etc/periodic/weekly/600.weekly.server is intended to run weekly, but is
currently empty. Its configuration file is /etc/diskspacemonitor/weekly.server.conf.
m The script /etc/periodic/monthly/600.monthly.server is intended to run monthly, but is
currently empty. Its configuration file is /etc/diskspacemonitor/monthly.server.conf.
As configured, the scripts specify actions that complement the log file management
performed by the services listed above, so do not modify them. All you need to do is log in as
an administrator and use a text editor to define thresholds in the configuration files that
determine when the actions are taken:
m the number of megabytes a log file must contain before its space is reclaimed
m the number of days since a log file’s last modification that need to pass before its space
is reclaimed
Specify one or both thresholds. The actions are taken when either threshold is exceeded.
LL0395.Book Page 594 Wednesday, November 20, 2002 11:44 AM