Running Pak as a System Service or Daemon

After installation, Pak is started automatically as a system service or daemon. You can change this behavior and only start Pak manually if you wish.

This page gives generic and windows -specific information about starting and stopping the Pak service.

Generic Instructions

Pak includes a manager program called appman. This program is used to configure the running of Pak as service. Appman provides a generic way to install/uninstall, enable/disable, start/stop, and run the Pak service regardless of the Operating System.

The Appman command takes the form:

appman commands...

Where commands can be:

CommandDetails
installInstall Pak service
uninstallUninstall Pak service
enableEnable Pak to start automatically on system boot
disableDisable Pak from automatically starting
startStart Pak manually
stopStop Pak
runRun Pak and monitor its execution. Restart if it fails.

Stopping Pak as a Service

Use the following command to stop Pak running as a service permanently:

appman disable

Run the following commands to restore Pak running as a service:

appman enable
appman start

Windows Instructions

On Windows, Pak is managed by two programs:

The Appman manager program is installed as a windows service that starts, manages and restarts Pak. If Pak fails, Appman will automatically restart it.

Windows services run in the background with little interaction with the user. So to provide more convenient access to manage Pak, the Pak Monitor program runs and is accessible from the windows system tray (taskbar notification area). You can start and stop Pak using either the manager or Monitor programs.

Appman — Pak Manager Service

You can interface with the Appman program via the Windows Services Applet. To invoke the applet select:

Start -> Control Panel -> Administrative Tools -> Services

Then select and double click on the Embedthis Pak service. A dialog panel will be displayed from which you can start and stop the manager (appman) process.

services

When started or stopped, the manager will first do the same operation on the real Pak instance. Pausing the manager will have no effect on Pak, but will pause the manager itself.

Once installed, you will need to start the service via the Services control applet.

Pak Monitor

The Windows Pak Monitor is launched when you log in. It a quick and easy way to start, stop, and restart Pak. You can also launch a browser to display the documentation or the Pak management console (future feature).

tray

When you select 'stop' Pak, you actually stop the manager process which in turn stops Pak. Similarly, when you select 'start' Pak, you are really starting the manager which detects that Pak is not running and automatically launches it.

© Embedthis Software, 2003-2015. All rights reserved.