Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
devel:documentation:systems:dev:winrm_connector [2019/07/10 06:52] kucerar roles, script tips |
devel:documentation:systems:dev:winrm_connector [2019/07/11 10:31] kucerar connector server as service |
||
---|---|---|---|
Line 131: | Line 131: | ||
Now we have prepared the tool which is used by our connector. Next you need to install java connector server. Connector server is not mandatory but as we wrote in the first section it's recommended to use it. | Now we have prepared the tool which is used by our connector. Next you need to install java connector server. Connector server is not mandatory but as we wrote in the first section it's recommended to use it. | ||
+ | < | ||
You can download whole bundle with prepared and tested connector server here:< | You can download whole bundle with prepared and tested connector server here:< | ||
Line 142: | Line 143: | ||
* jackson-databind-2.9.8 | * jackson-databind-2.9.8 | ||
You will probably need to add these libs into classpath in ConnectorServer.sh or ConnectorServer.bat it depends on your OS. | You will probably need to add these libs into classpath in ConnectorServer.sh or ConnectorServer.bat it depends on your OS. | ||
+ | |||
+ | If you want to be able to run connector server as a service follow next steps | ||
+ | |||
+ | < | ||
+ | # create user which we run the connector server | ||
+ | useradd connector-server | ||
+ | |||
+ | #create file | ||
+ | / | ||
+ | |||
+ | # content of the file, change path according where you have your connector server | ||
+ | [Unit] | ||
+ | Description=Java Connector Server Service | ||
+ | [Service] | ||
+ | User=connector-server | ||
+ | WorkingDirectory=/ | ||
+ | ExecStart=/ | ||
+ | SuccessExitStatus=143 | ||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | |||
+ | # Reload and enable deamon | ||
+ | systemctl daemon-reload | ||
+ | systemctl enable java-connector-server | ||
+ | |||
+ | # Use this to start/ | ||
+ | systemctl start java-connector-server | ||
+ | systemctl stop java-connector-server | ||
+ | systemctl status java-connector-server | ||
+ | </ | ||
Now you can put winrm-connector-1.0.0.jar to the bundles folder inside connector server and you can start it. | Now you can put winrm-connector-1.0.0.jar to the bundles folder inside connector server and you can start it. | ||
Next thing which you need to do is configure WinRM on windows server or check if WinRM is accessible. You can follow steps from out [[tutorial: | Next thing which you need to do is configure WinRM on windows server or check if WinRM is accessible. You can follow steps from out [[tutorial: |