A program like Iguana can be run in different modes depending on the operating system. These modes are known as Processes, Daemons, and Services.
Explain the differences between Daemons, Services, and Processes, and how Iguana can be run in each mode.
- An instance of a particular executable that is being executed:
- Typically, an executing program can exist in one of three states:
- Running: Active
- Sleeping: Inactive
- Zombie: A process that has completed execution, but still has an entry in the process table
- A process which runs in the background and is not interactive.
- They have no controlling terminal on their own from the user’s perspective from the desktop.
- They continue to exist and operate regardless of any user being logged into the server if the computer is on.
- In Windows, daemons are called services, and behave exactly how daemons were previously described.
- They exist and operate independent of a user’s login session, and its status can be observed under the Services tab of Windows Task Manager.
How it works [top]
Iguana operates primarily as a service, because it was designed to do continuous integration processing tasks in the background. Therefore Iguana will usually be run as a Daemon or Service after installation. Because Iguana listens on a single port you will need multiple instances of Iguana to listen on multiple ports (one instance per port).
Running Iguana as a standalone process can be used for development or testing purposes and can be useful during the installation process. However when Iguana is run as a standalone process it will shutdown if the user account is logged off, or inactive — which is not suitable for a production system.
Note: You must run Iguana once to create the configuration file (such as the IguanaConfiguration.xml) as they are not included in the install.
During installation it can be useful to run Iguana for the first time as an executable to create configuration file.
If Iguana needs to be reset, it is important to check that before restarting that the Iguana daemon/service is not running at all, or in any of the states described prior (Running, Sleeping, Zombie) or you may experience weird Iguana behaviour such as port conflicts, immediate shutdown of Iguana, denied access to Logs etc.