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 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
 +
 +<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]]