Index  Up  >>  


Starting, Stopping, and Re-starting the Servers

The following commands need to have VENDROOT changed to the main directory where you installed MiniVend. If you made /home/minivend/mvend your MiniVend base directory, the start command would be /home/minivend/mvend/bin/minivend.

Do a perldoc VENDROOT/bin/minivend for full documentation.

To start the server with default settings:

    VENDROOT/bin/minivend

It is usually best to issue a restart, otherwise the server will not run anew if a server is already running.

    VENDROOT/bin/minivend -restart

Assuming the server starts correctly, you will see the names of catalogs as they are configured, along with a message stating the process ID it is running under.

To re-start the server:

    VENDROOT/bin/minivend -restart

-r is the same as -restart.

This is typically done to force MiniVend to re-read its configuration. You will see a message stating that a TERM signal has been sent to the process ID the servers are running under -- that information is also sent to /home/minivend/error.log. Check the error.log file for confirmation that the server has restarted properly.

To stop the server:

    VENDROOT/bin/minivend -stop

You will see a message stating that a TERM signal has been sent to the process ID the server is running under -- that information is also sent to /home/minivend/error.log.

Because processes waiting for selection on some operating systems block signals, they may have to wait for HouseKeeping seconds to stop. The default is 60.

To terminate the MiniVend server with prejudice, in case it will not stop:

    VENDROOT/bin/minivend -kill


Index  Up  >>