Starting and stopping the server

Starting EyeDB server

The EyeDB server is started using the following command:

eyedbctl
start [options...]

Example 2.1. eyedbctl start

eyedbctl start
Starting EyeDB Server
 Version      V2.8.8
 Compiled     Feb 14 2009 00:16:45
 Architecture i686-pc-linux-gnu
 Program Pid  19433
	  

By default, the EyeDB server listens to incoming client connections on 2 ports:

  • a TCP/IP socket bound to port 6240

  • a Unix socket bound to file name /var/lib/eyedb/pipes/eyedbd for standard installation, or PREFIX/var/lib/eyedb/pipes/eyedbd where PREFIX is the installation prefix that has been set during configuration

The listening ports can be set:

Example 2.2. eyedbctl start with --listen option

eyedbctl start --listen=localhost:10000,/var/tmp/eyedb-socket
Starting EyeDB Server
 Version      V2.8.8
 Compiled     Feb 14 2009 00:16:45
 Architecture i686-pc-linux-gnu
 Program Pid  19560
	  

Stopping EyeDB server

The EyeDB server is stopped using the following command:

eyedbctl
stop [options...]

Example 2.3. eyedbctl stop

eyedbctl stop
Killing EyeDB Server Pid 19433
	  

If the server was started with the --listen option to set the listening port, the same option must be passed to eyedbctl when stopping the server.

Example 2.4. eyedbctl stop with --listen option

eyedbctl stop
No EyeDB Server is running on localhost:6240
eyedbctl stop --listen=localhost:10000,/var/tmp/eyedb-socket
Killing EyeDB Server Pid 19560