Skip to content

Archive

Service Management

2 articles
Linux 05 Nov 2026 5 min read

OpenRC Runlevels: Why Enabling a Service Does Not Start It

rc-update add sshd default registers SSH for the default runlevel. It does not start the SSH daemon. Conversely, rc-service sshd start can start the daemon immediately without enabling it for the next boot. That separation is central to OpenRC. A service has a place in the boot configuration and a current runtime state, and those are different things. Confusing them can leave a service running until the next reboot but absent afterward, or registered to start at boot while still stopped today.

Linux 19 Sep 2026 5 min read

systemd Unit File Search Paths and Override Precedence

A systemd service file does not have to live in /etc/systemd/system. The system manager searches several directories for unit files, and the directory matters because the search order defines which definition wins when the same unit name exists in more than one place. For an administrator-managed service, /etc/systemd/system is usually the appropriate location. Distribution packages normally install units under /usr/lib/systemd/system, while /run/systemd/system is used for runtime configuration that disappears after reboot. This separation lets local configuration override vendor defaults without editing files owned by the package manager.