Sun Cluster Data Services Developer's Guide for Solaris OS

Directory Structure That Agent Builder Creates

Agent Builder creates a directory structure to hold all the files that it generates for the target resource type. You specify the working directory on the Create screen. You must specify separate install directories for any additional resource types that you develop. Under the working directory, Agent Builder creates a subdirectory whose name is a concatenation of the vendor name and the resource type name. For example, if you specify SUNW as the vendor name and create a resource type called ftp, Agent Builder creates a directory called SUNWftp under the working directory.

Under this subdirectory, Agent Builder creates and populates the directories that are listed in the following table.

Directory Name 

Contents 

bin

For C output, contains the binary files that are compiled from the source files. For Korn shell output, contains the same files as the src directory.

etc

Contains the RTR file. Agent Builder concatenates the vendor name and application name, separated by a period (.), to form the RTR file name. For example, if the vendor name is SUNW and the name of the resource type is ftp, the name of the RTR file is SUNW.ftp.

man

Contains customized man pages for the start, stop, and remove utility scripts, for example, startftp(1M), stopftp(1M), and removeftp(1M).

 

To view these man pages, specify the path with the man -M option. For example:


% man -M install-directory/SUNWftp/man removeftp

pkg

Contains the final Solaris package that includes the created data service. 

src

Contains the source files that Agent Builder generates. 

util

Contains the start, stop, and remove utility scripts that Agent Builder generates. See Utility Scripts and Man Pages That Sun Cluster Agent Builder Creates. Agent Builder appends the application name to each of these script names, for example, startftp, stopftp, and removeftp.