Kingsfordweg 151, 1043GR Amsterdam, The Netherlands ● 24/7 support — support@novogara.com
Knowledge base

Web apps under systemd

An application started by hand or from a shell script is an outage waiting to happen. Running it as a proper service hands the hard parts — restarts, logging, limits — to the system.

Restarts and ordering for free

As a service, your app restarts if it crashes, starts in the right order after its dependencies, and comes back after a reboot without anyone logging in. That alone removes a class of three in the morning surprises — see systemd services.

Logging and limits where they belong

Send output to the system journal and it is captured, rotated and searchable alongside everything else — central logging can collect it. Resource limits on the unit keep a misbehaving app from taking the whole box, using the same limits and control groups as any service.

Run it as its own user

Give the service a dedicated, unprivileged account so a flaw in the app is contained — least privilege again. A few lines in a unit file turn a fragile process into something you can operate and trust.


Still stuck? Mail support@novogara.com — an engineer answers, at any hour. Back to the knowledge base