The Generic Service

The Program gs

 

The program gs implements the „Generic Service“ and is in the following referred to as „Generic Service“.

The name conflicts with a commonly installed utility for linux, GhostScript. This might cause confusion as to whether typing gs will start Generic Service, or GhostScript.

It is advisable to start the Generic service always using the full path.

   

When using a GigE Vision frame Grabber, you have to start the Generic Service before working with frame grabber and runtime.

Keep gs Running

 

The Generic Service must be always running.

We recommend to start the Generic Service at system start. Refer to the documentation of your current distribution to get detailed information on how to do that.

You could, for example, write an according Shell Script for starting the service, and place it in directory

/etc/init.d/

And add a link to your runlevel directory, e.g.:

/etc/rc2.d/

   

Starting the Generic Service Manually

To start the service manually (via a terminal window):

  1. To check if the service is running, enter:

[prompt] <INSTALLDIR>/bin/gs status

You will get a return saying "Service is running."

  1. If you need to start the service, enter

[prompt] <INSTALLDIR>/bin/gs start

Stopping the Generic Service Manually

To stop the service manually (via a terminal window):

  1. Enter:

[prompt] <INSTALLDIR>/bin/gs stop

  1. To check if the service has really been stopped, enter:

[prompt] <INSTALLDIR>/bin/gs status

You will get a return saying "Service is not running."

Running the Generic Service directly in the Shell

You can also run the service directly in the shell.

To run the service directly in the shell:

  1. Enter

[prompt] <INSTALLDIR>/bin/gs run

To stop the service when running in the shell:

  1. Use the key combination

CTRL + C