Entry point examples in this chapter

In this chapter, the example entry points are shown for an agent named Foo. The example agent has the following resource type definition:

In the types.cf format:

type Foo (
    str PathName
    static str ArgList[]= {PathName}
)

For this resource type, the entry points defined are as follows:

online

Creates a file as specified by the Pathname attribute

monitor

Checks for the existence of a file specified by the PathName attribute

offline

Deletes the file specified by the PathName attribute

clean

Forcibly deletes the file specified by the PathName attribute

action

Runs a pre-specified action

info

Populates the ResourceInfo attribute with the values of the attributes specified by the PathName attribute