3.2. Starting QOS

3.2.1. Starting the Server

The Server may be started and detached like any system daemon using the qosserver.init script in the qosserver base directory. It takes one of three arguments:

qosserver.init Arguments

start

Starts the Server.

stop

Kills any running Server.

restart

Stops the Server, then starts it again.



The Server logs to the file /var/log/qosserver.

To start the Server, run:

# sh qosserver.init start

For debugging, the Server may be started and left in the foreground. To start the server this way, change into the server's directory then run:

# python qos_server.py /usr/local/qos/qosserver

Replace /usr/local/qos/qosserver/ with the path to the Server's installation directory.

3.2.2. Starting the Agent

The qosagent.init script controls the operation of the Agent. This script works like any standard boot-time rc script. It takes one of three arguments:

qosagent.init Arguments

start

Starts the Agent and backgrounds once the initial connection to the server succeeds.

stop

Kills any running Agent.

restart

Stops the Agent, then starts it again.



The Agent logs to /var/log/qosagent which tracks Agent activity and logs any Agent exceptions.