This section describes how to use the command-line interface to perform the same set of steps shown earlier in this chapter.
Create a failover service.
# scdscreate -G -V vendor -T app appname \ [-d working directory] \ [-c] [-p]
Create a scalable service.
# scdscreate -G -s -V vendor -T app appname \ [-d working directory] \ [-c] [-p]
Use the following guidelines:
The –d argument is optional. If you do not specify this argument, the current directory becomes the working directory.
The –c argument is optional. If set, a subclassed GDSv2 resource type is created.
The –p argument is optional. If set, a proxy GDSv2 resource type is created.
For a non-proxy service, type:
# scdsconfig -s "path to your start command" \ [-d working directory] \ [-e "path to your validate command"] \ [-t "path to your stop command"] \ [-m "path to your probe command"] \ [-l "interpose logical hostname"] \ -p
For a proxy service, type:
# scdsconfig -s "path to your prenet_start command" \ [-d working directory] \ [-e "path to your validate command"] \ [-t "path to your postnet_stop command"] \ [-l "interpose logical hostname"]
Use the following guidelines:
The –s argument is required. You should specify the path to your start or prenet_start command.
The –d argument is optional. If you do not specify this argument, the current directory becomes the working directory.
The –e argument is optional. If you specify this argument, you should specify the path to your validate command.
The –t argument is optional. If you specify this argument, you should specify the path to your stop or postnet_stop command.
The –m argument is optional. If you specify this argument, you should specify the path to your probe command.
The –l argument is optional. If you specify this argument, you should specify the interpose logical host name.
The –p argument is optional. Selecting this argument ensures that PMF_managed=FALSE is set. See Chapter 2, Creating a Data Service with GDSv2 for more information on the PMF_managed command.
# cd working directory/pkg # pkgadd -d . vendorappname
# cd /opt/vendorappname/util/startapp [arguments] logicalhostname -p port-and-protocol-list
To view the man pages, you need to specify the path to the man page. For example, to view the startapp(1M) man page, type:
# man -M /opt/vendorappname/man startapp