Shutting down the OKS database server

The OKS database server process is automatically shut down when the operating system is brought down. However, it is possible that an administrator wants to shutdown the OKS database server under certain conditions.

There is no specific procedure to stop the OKS database server, you will just need to send a simple signal to the process:

# 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 1401

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

Shutting down the OKS database server will break any gateways connections and store the database on the disk.

It is recommanded to shutdown the OKS database server using this method otherwise any modification made on the database will not be commited on the disk. This may lead to a database corruption and you will need to restore your OKS database.