Restarting the OKS database server

In order to apply any configuration changes made to its configuration file or to dump its database on the disk, you may need to restart the OKS database server.

To make this operation easier, you just have to send a SIGHUP signal to the OKS database server process.

Here is an example:

# ps
 PID COMMAND
1401 /usr/local/oks/bin/oksd /usr/local/oks/etc/oksd.conf
1404 /usr/local/oks/bin/oks_http /usr/local/oks/etc/oks_http.conf
# kill -HUP 1401

The first command lists the current user processes and the second one sends a SIGHUP signal to the database server  process. In case of errors, the syslog service is used and will print usefull error messages.

Restarting the OKS database server will break any gateways connections, but you will not need to restart them because they are build to automatically restore these connections after the database server restarts.

  If the server encounters any errors during its restart, the process will be automatically paused for a certain amount of time set in its configuration file. After this delay, the server will try to restart again or stay into pause mode if errors persist.