Modifying service parameters with sm_service
The parameters for a service can be modified with the sm_service install action.
Installing programs as services with sm_service on page 71
provides additional
information. The --
force option, which overwrites the existing parameters, must
be used with the install action when you modify a service.The syntax for the sm_service install action (to modify service parameters) is:
sm_service install --force
You must type this command with administrative privileges.
To modify service parameters:
- Stop the existing service with thesm_service stopaction.
- Use thesm_service showaction with the--cmdline option to display the command line that was used to install the existing service.
- Use thesm_service installaction with the--force option, copy the displayed command line from step 2 after the--force option, and modify the parameters that need to be changed.
- Start the modified service.