Skip to content

pman overview

Rudolph Pienaar edited this page Mar 9, 2017 · 21 revisions

pman overview

Abstract

pman manages processes, i.e. programs or applications that are run by an underlying system. For the most part, these processes are command line applications (i.e. have no GUI) and usually do not interact really with a user at all. The purpose of pman is to provide other software agents the ability to execute processes via http and then be able to respond to these agents when queried about the process. In the simplest case, pman is given some string text that is the command line of the program to run on an underlying system shell. This program is executed, and pman can then be asked for information about this process.

Installation / setup

See the main page here.

Startup

See the startup docs here.

Running

To run a process, see here.

Searching for a process

To search for a process, see here.

DataBase

pman maintains a human-friendly/readable database of jobs and history, typically in the /tmp/pman directory of the machine on which it is run.

REST-like!

REST purists will note that communicating with pman is not pure REST, but rather REST-like. For example, querying pman is almost always done with POST requests as opposed to using GET verbs. The reason for this is partially historical and partially expedience. Information between the server and client is communicated in a JSON message payload and not really the http URL.

Since translating the current packet/payload scheme into URL type format should be straightforward, future versions of pman are projected to be more fully REST compliant.

--30--

Clone this wiki locally