Running the Client as a Background Service (Daemon)

1 post / 0 new
Michael
Running the Client as a Background Service (Daemon)

The VirtualHere USB Client can run either as a normal application or as a background service. Running the client as a background service enables devices to be shared while requiring no user to be logged in. This makes it easy to remotely interact with USB devices, and once setup can be a background set-and-forget type system. Users can log in/out and the VirtualHere client will remain running in the background uninterrupted.

When the VirtualHere USB Client is installed as a background service it will automatically start up when the operating system boots, and will automatically connect to any devices you have specified.. The message log can be viewed in the Event Viewer (under Windows), Console Viewer (under OSX), or tail /var/log/syslog (under Linux).

THE VIRTUALHERE USB SERVER MUST BE PURCHASED TO USE THIS FEATURE

To install the Virtualhere USB client as a service in Windows or OSX

  1. Right click USB Hubs->Install Client as a Sevice(If the service is already installed, this option will be Uninstall Client Service instead)
  2. The client as a service will be installed.
  3. Start the client again and it will communicate with the running service in the background.
  4. You can exit the client and the client service will continue to run as normal in the background

To install the VirtualHere USB client as a daemon in Linux:

Firstly you should use the VirtualHere USB Client Console edition. Then run the client with the -n option. This will start it in daemon mode

E.g: to run the client in the background under linux use sudo like this:sudo ./vhclientx86_64 -n

To interact/control the daemon no need to use sudo just run e.g ./vhclientx86_64 -t "HELP" on the command line for available commands

To start the client on boot you will need to add it to run level scripts, here is an example of a boot script