Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
devel:documentation:systems:dev:winrm_connector [2019/07/10 09:55] kucerar log rotation |
devel:documentation:systems:dev:winrm_connector [2019/07/11 10:31] kucerar connector server as service |
||
---|---|---|---|
Line 143: | 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: |