HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
s
smhstartconfig(1M) smhstartconfig(1M)
NAME
smhstartconfig - configures the startup mode of the HPSMH server and of the Tomcat instance used by
HPSMH
SYNOPSIS
/opt/hpsmh/bin/smhstartconfig
[-a {on|off}| -b {on|
off}] [-t {on|off}]
DESCRIPTION
The
smhstartconfig
script is used to configure the startup mode of the HPSMH server and of the
Tomcat instance used by HPSMH.
If no options are specified,
smhstartconfig
displays the current configuration.
The
smhstartconfig
command does not accept simultaneously
-a on and -b on options.
Note: The
-t on option will not take effect until at least one Java web application is registered (i.e., the
Tomcat server will not be started if there are no Java web applications available).
Options
The smhstartconfig command supports the followings options:
-a {on | off} Enable/disable the "autostart URL" mode
-b {on | off} Enable/disable the "automatic startup on boot" mode
-t {on | off} Set the Tomcat startup mode where:
on Start Tomcat when HPSMH starts.
off Start Tomcat on demand (default).
RETURN VALUES
The smhstartconfig command returns:
0 upon successful completion
1 if the command failed
EXAMPLES
Enables autostart:
smhstartconfig -a on
Shows settings:
smhstartconfig
HPSMH ’autostart url’ mode.........: ON
HPSMH ’start on boot’ mode.........: OFF
Start Tomcat when HPSMH starts.....: OFF
WARNINGS
You must be superuser to run smhstartconfig
.
AUTHORS
smhstartconfig was developed by Hewlett-Packard.
HP-UX 11i Version 3: February 2007 − 1 − Hewlett-Packard Company 395