svc_control.sh script
Use the svc_control.sh
script to control
individual IBM®
InfoSphere® Master Data Management Collaboration Server -
Collaborative Edition services.
Syntax
svc_control.sh --action=start|stop|abort|status|long_status|show_config|list
[--svc_name=short name of service]
[--wsadminUsername=<was_admin_user> --wsadminPwd=<was_admin_password>]
[--names=<list_of_service_names>] [--profile] [--debug] [--rmlogs] [--help]
Parameters
- action
- Specifies one option from among start, stop, abort, status, long_status, show_config, and list options.
- The
start
option is used to start the services that are specified by the--svc_name
option. - The
stop
option is used to stop the services that are specified by the--svc_name
option. - The
abort
option is used to abort (kill) the services that are specified by the--svc_name
option. - The
status
option is used to get status (PID) of the service specified by the--svc_name
option. - The
long_status
is used to get the extended (HTML) status of the service specified by the--svc_name
option. - The
show_config
option is used to show the configuration of the service that is specified by the--svc_name
option. - The
list
option is used to print a list of the full names of all defined services.
- The
- svc_name
- This parameter is the short name of a service, for example "admin, workflowengine, queuemanager,
appsvr, or scheduler". If
svc_name=all
then the action is applied to all services.Note: Thesvc_control.sh
script fails if the input forsvc_name
is the full name of the service. - wsadminUsername
- This parameter is the WebSphere Application Server administrative user name. This is required if
admin_security=true is specified, but the user name and password are not
provided in the env_settings.ini file. You can specify the
wsadminUsername
andwsadminPwd
arguments in the command to override the values that are provided in the env_settings.ini file. This argument is applicable only ifsvc_name
is of typeappsvr
andaction
isstart
,stop
,abort
, orstatus
. - wsadminPwd
- This parameter is the password of the WebSphere Application Server administrative user. This is
required if admin_security=true is specified, but the user name and password
are not provided in the env_settings.ini file. You can specify the
wsadminUsername
andwsadminPwd
arguments in the command to override the values that are provided in the env_settings.ini file. This argument is applicable only ifsvc_name
is of typeappsvr
andaction
isstart
,stop
,abort
, orstatus
. - names
- The value needs to be a comma-separated list of short service names. This option can be specified only if svc_name is 'appsvr' or 'scheduler'. This option allows specific services by name to be acted on.
- profile
- Enables profiling for the services.
- debug
- Start services in debug mode.
- rmlogs
- Specify this option to request help information.
- help
- Delete all files under the logs directory.
Example
The following example shows how to stop a single service.
./svc_control.sh --action=stop --svc_name=workflowengine
Output
Running thesvc_control.sh
script
displays the types and full names of services that are affected by
the options that you have entered at the command prompt.