init_ccase

Startup/shutdown script

APPLICABILITY


Product

Command Type

ClearCase


command


ClearCase LT


command


Platform

UNIX

SYNOPSIS

AIX 4, MP-RAS

/etc/rc.atria { start | stop }

Digital UNIX, HP-UX 10, HP-UX 11

/sbin/init.d/atria { start | stop }

Solaris, IRIX, Reliant UNIX, UnixWare

/etc/init.d/atria { start | stop }

DESCRIPTION

The shell script listed in the SYNOPSIS section is invoked at system startup and shutdown. It can also be executed as a shell command.

CLEARCASE AND CLEARCASE LT STARTUP

When invoked with the argument start (or without an argument), the script performs initialization as follows:

Startup Retry Loop

The startup script resides outside the host's ClearCase/ClearCase LT installation area. It calls on another script, which resides inside the installation area, to do the actual startup processing. If this other script, ccase-home-dir/etc/atria_start, cannot be accessed, the startup script enters a retry loop. (This can occur if the ClearCase/ClearCase LT installation area is located on a remote host, and that host is currently unavailable.)

In its retry loop, the startup script tries periodically to invoke ccase-home-dir/etc/atria_start.The retries continue indefinitely; if you want to terminate the loop, remove the flag file /tmp/ClearCase.retrying.

The Viewroot Mount Command

The startup script runs a standard mount command to mount the viewroot directory as a file system of type MVFS. This mount command is architecture-specific:

Architecture Command

AIX 4

mount -v mvfs -o rw,viewroot hostname:/view /view

Digital UNIX

mount -t mvfs -o -o=rw,-o=viewroot /view /view

IRIX, MP-RAS

mount -t mvfs -o rw,viewroot /view /view

Reliant UNIX, HP-UX 10, HP-UX 11

mount -F mvfs -o rw,viewroot /view /view

Solaris, UnixWare

mount -F mvfs -o rw,viewroot hostname:/view /view

You can change the extending naming symbol by appending a string to the argument that follows the -o option:

,xnsuffix=symbol

(all platforms except Digital UNIX)

,-o=xnsuffix=symbol

(Digital UNIX)

This specifies a character string to be used on the local host as the ClearCase extended naming symbol. By default, the string @@ is used. Be careful: this option affects the local host only; other hosts may use the default extended naming symbol or another symbol specified with this mount option.

You can specify a directory other than /view as the viewroot. Whatever directory you specify (for example, /ccasevu) must exist at system startup time. Note that you must specify this directory name twice in the mount command.

Mounting the viewroot directory enables use of ClearCase views on the local host. When a view is activated (by startview, setview, or mktag), its view-tag is entered into the viewroot directory. For example, activating a view whose view-tag is gamma creates the directory entry /view/gamma. See the pathnames_ccase reference page for a discussion of view-extended pathnames that use such directory entries.

A mounted viewroot directory is not actually an on-disk directory. Rather, it is a data structure maintained in main memory by the MVFS code loaded into the operating system kernel. The viewroot directory's list of view-tags is lost whenever ClearCase operation on the local host is stopped (including an operating system shutdown).

The viewroot directory cannot be exported and cannot be mounted by any other host. Each ClearCase host must have its own viewroot directory.

SHUTDOWN

When invoked with the argument stop, the script shuts down ClearCase/ClearCase LT:

SEE ALSO

exports_ccase, mount_ccase, pathnames_ccase, Administrator's Guide