What is a service?

A service is a program that runs quietly in the background, without a window you can see — and octoja can watch it for you.

Written By Erdinc Akay

Last updated About 2 months ago

The short version

A service is a program that runs quietly in the background, without a window you can see. Services start automatically when the computer boots up and keep running whether or not anyone is logged in. Most of the software that keeps a computer useful — networking, printing, security scanning, databases — runs as a service.

Why services matter

When a service stops unexpectedly, the software that depends on it stops working too. A few examples:

  • If the print spooler service stops, nobody on that computer can print.
  • If the DNS Client service stops, the computer cannot translate website names into addresses — the internet appears broken.
  • If a database engine service stops, every application that stores data in it goes down.

Because services have no visible window, you might not realise one has stopped until someone reports a problem. This is exactly why monitoring tools like octoja watch services for you.

How octoja monitors services

octoja's service check looks at services that are set to start automatically (called "auto-start" services). If one of them is not running, the check flags it so you can investigate.

What the check sees depends on the operating system:

PlatformWhat octoja monitors
WindowsServices registered in the system registry with automatic start-up type
LinuxUnits enabled via systemd (systemctl)
macOSThird-party services loaded via launchctl (Apple's own system services are excluded)

You can also tell the check to watch a specific list of services by name, instead of all auto-start services.

Services vs. applications

The difference is simple:

  • An application opens a window, and you interact with it directly (a browser, a text editor, a game).
  • A service runs in the background with no window. It does its job silently and you only notice it when it stops.

Some software has both: for example, an antivirus product might run a background service that scans files continuously, and a separate application with a window where you can see scan results and change settings.