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:

  1. Stop the existing service with the sm_service stop action.

  2. Use the sm_service show action with the --cmdline option to display the command line that was used to install the existing service.

  3. Use the sm_service install action 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.

  4. Start the modified service.