Restarting the OKS HTTP gateway

In order to apply any configuration changes made to its configuration file, you may need to restart the OKS HTTP gateway.

To make this operation easier, you just have to send a SIGHUP signal to the OKS HTTP gateway 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 1404

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

  If the gateway 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 gateway will try to restart again or renter into pause mode if errors persist.