DCE Installation, Configuration, and Management Guide

Recommended Usage
HP NonStop DCE Installation, Configuration, and Management Guide429552-005
6-4
Starting and Stopping DCE Services
Starting and Stopping DCE Services
After a virtual host has been configured as part of a DCE cell, DCE services on that
machine can be started by either:
Using the dce_config utility.
Running dce_config scripts directly. This action is described in the section on
managing DCE configurations in the OSF DCE Administration Guide Introduction.
Use the DCE privuser user ID to start NonStop DCE. Therefore, if the
/etc/rc.dce.hostname script (where hostname is the name of the virtual host) is
automatically run when a machine is started, ensure that it is run by the DCE privuser.
After the dced demon has been started on a machine, you can control DCE services
on that machine with dcecp commands. For more information, see the section on
managing DCE hosts in the OSF DCE Administration Guide Core Components.
Usually, /etc/dce_shutdown is run without any options, allowing it to shut down
demons by using the appropriate control programs. This recommended way of using
/etc/dce_shutdown allows demons to stop in an orderly fashion; for example, by
flushing data buffers. If dce_config cannot stop a demon cleanly, it tries to kill it,
which can corrupt the demon’s data files.
To stop all demons as quickly as possible, /etc/dce_shutdown can be invoked with
the -f option, which kills all demons. The -f option should be used only in an
emergency because of the possible detrimental effects on the demons’ data files.
Setting Local Time With the DTS
DTS reports local time for a virtual host according to the value of the TZ environment
variable. If TZ is not set, DTS reports local time according to the contents of the binary
time-zone information file /etc/zoneinfo/localtime.
The localtime file is created when the first NonStop DCE configuration is performed
on the system. At that time, dce_config reads the TZ environment variable to
determine the local time zone. dce_config then copies a matching binary time-zone
information file to /etc/zoneinfo/localtime. (The binary time-zone information
files are supplied as part of the NonStop DCE Core Services product [T8403] and
copied to /opt/dcelocal.hostname/etc/zoneinfo during NonStop DCE
installation, where hostname is the name of the virtual host.) If a matching file cannot
be found, or if the TZ environment variable is not set or is not recognizable, the time-
zone file for Coordinated Universal Time (UTC) is copied.
After the localtime file has been created, it is not changed by dce_config. It does
not change during subsequent NonStop DCE installs or configuration.
If you did not create the localtime file during installation, you can set the local time
without reinstalling NonStop DCE. You can force NonStop DCE to display local time by