Use the agent-plugin.xml file to configure the rap.service_startCommand value for a publisher.
Specify the location of the script that starts the publisher:
Specify a fully qualified path rather than a relative path for the location of the script.
Ensure that the administration port value is configured properly in the agent-plugin.xml file to enable the stop function.