Google Search Appliance Connectors Administration Guide User Manual

Page 15

Advertising
background image


To register a connector as a service:

1. Download and extract prunsrv.exe from the

latest Windows binary download

of

Apache Commons Daemon. If you are running on 64-bit Windows and will use a 64-
bit JVM, then you should use the prunsrv.exe in the amd64/ directory.

2. Place prunsrv.exe in the same directory as the connector you would like to run as a

service.

3. In the same directory where the connector .jar files are installed, run the following

command:

prunsrv install <CONNECTOR-NAME> ^
--StartPath="<STARTPATH>" ^
--Classpath=<CONNECTOR-JAR> ^
--StartMode=jvm ^
--StartClass=com.google.enterprise.adaptor.Daemon ^
--StartMethod=serviceStart ^
--StartParams=<FULL-CONNECTOR-CLASSNAME> ^
--StopMode=jvm ^
--StopClass=com.google.enterprise.adaptor.Daemon ^
--StopMethod=serviceStop ^
--StdOutput=<OUTPUT-LOG> ^
--StdError= <ERROR-LOG> ^
--Jvm=<JVM-DLL> ^
--Startup=auto

Where:

<CONNECTOR-NAME>

is the name of the connector in the list of running services:

SharePoint: adaptor-sharepoint
SharePoint User Profiles: adaptor-sharepoint-user-profile
File Systems: adaptor-fs
Active Directory: adaptor-ad

<STARTPATH>

is the absolute path of the StartPath, for example

"C:\Users\administrator.GSA\Desktop\Connector"

<CONNECTOR-JAR>

is the the name of the connector .jar, for example, adaptor-

sharepoint-4.0.3-withlib.jar

<FULL-CONNECTOR-CLASSNAME>

is one of the following values:

com.google.enterprise.adaptor.sharepoint.SharePointAdaptor

Advertising