holidays(4) — FILE FORMATS
NAME
holidays − holiday file
DESCRIPTION
The file /etc/acct/holidays lists holiday and prime-time information. The accounting system can use this information to give users a discount for non-prime time system use.
The file /etc/acct/holidays is a link to the current year’s holiday file in the directory /etc/acct/database. This directory contains several files with the names holiday.yyyy, where yyyy is the number of a year.
When the system is booted, the file /etc/rc2.d/S50holiday is executed to link /etc/acct/holidays to the holiday file for the current year in /etc/acct/database. If /etc/acct/database has no holiday file for the current year, /etc/rc2.d/S50holiday links /etc/acct/holidays to the last file in /etc/acct/database. If there are no files in /etc/acct/database, /etc/rc2.d/S50holiday prints an error message and exits.
The holiday file contains three types of lines:
Comment Lines
Any line marked by an asterisk in the first column is treated as a comment. Comments can appear anywhere in the file.
Year Designation Line
This line must be the first non-comment line in the file and must appear only once. The line consists of three fields of four digits each (leading white space is ignored). The first field is the year, the second the prime time start, and the third the non-prime time start (prime time end). Prime time start and non-prime time start are specified with a 24 hour clock.
Holidays Lines
These lines contain two fields: a date field and a description field. The date field is specified as month/day, where month and day are one or two digit numbers. The description field is commentary that is not used by the accounting programs.
The following is an example of a holiday file:
∗ CurrPrimeNon-Prime
∗ YearStartStart
∗
199208001700
∗
∗
∗ Memorial Day is the last Monday in May
∗ Labor Day is the first Monday in September
∗ Thanksgiving Day is the fourth Thursday in November
∗
∗ only the first column (month/day) is significant.
∗
∗ month/dayCompany
∗ Holiday
∗
1/1New Years Day
5/25Memorial Day
7/4Indep. Day
9/7Labor Day
11/26Thanksgiving
11/27day after
12/24Christmas Eve
12/25Christmas Day
NOTES
Do not put any blank lines into the holiday file. Blank lines will cause the runacct command to fail.
FILES
/etc/acct/holidays
/etc/acct/database/∗
/etc/rc2.d/S50holiday