Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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.
  
 +<note>Configure log rotation for connector server log file</note>
 You can download whole bundle with prepared and tested connector server here:<note important>It's not released to public yet</note> You can download whole bundle with prepared and tested connector server here:<note important>It's not released to public yet</note>
  
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
 +
 +<code>
 +# create user which we run the connector server
 +useradd connector-server
 +
 +#create file
 +/etc/systemd/system/java-connector-server.service
 +
 +# content of the file, change path according where you have your connector server
 +[Unit]
 +Description=Java Connector Server Service
 +[Service]
 +User=connector-server
 +WorkingDirectory=/opt/connid-connector-server
 +ExecStart=/bin/bash /opt/connid-connector-server/bin/ConnectorServer.sh -run -properties /opt/connid-connector-server/conf/connectorserver.properties
 +SuccessExitStatus=143
 +[Install]
 +WantedBy=multi-user.target
 +
 +# Reload and enable deamon
 +systemctl daemon-reload
 +systemctl enable java-connector-server
 +
 +# Use this to start/stop/status
 +systemctl start java-connector-server
 +systemctl stop java-connector-server
 +systemctl status java-connector-server
 +</code>
  
 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:adm:configuration_-_winrm|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:adm:configuration_-_winrm|tutorial]]