Posts

Showing posts with the label systemd

Understanding systemd: The Beating Heart of Modern Linux Systems

Image
  If you’re running Fedora — especially its latest stable release — you already have one of the most modern, cutting-edge Linux environments available. And at the center of it all is systemd , the powerful, controversial, and indispensable init system that orchestrates everything from the moment your machine boots to the time you shut it down. This post dives deep into what systemd is, why it matters, how it compares to its predecessors, and—most importantly—how you as a Fedora user can actually use it to control, troubleshoot, and optimize your system. We won’t be creating new services here; instead, we’ll focus on the user side of systemd — the practical commands, structures, and mental models that every Linux power user should master. 1. What Is systemd, and Why Does It Exist? At its core, systemd is the init system — the first userspace process (PID 1) that the Linux kernel starts after boot. Its job is to initialize and manage everything that follows: mounting filesys...

How to Reliably Run a Minecraft Server on OCI Using Systemd for Auto-Restarts

  In this guide, we will build on the previous tutorial for setting up a modded Minecraft server on Oracle Cloud Infrastructure (OCI). You will learn how to configure your Minecraft server to run as a systemd service, ensuring it starts automatically at boot and restarts in case of crashes. Step 1: Verify Your Server Setup Before proceeding, ensure that: You have completed the basic setup of a Minecraft server on OCI as outlined in the previous guide. The Minecraft server files are located in ~/minecraft and can be started with the command: java -Xmx8G -Xms8G -jar forge-*.jar nogui Replace 8G with your desired RAM allocation. Step 2: Create a Systemd Service File Open a terminal and switch to the root user: sudo su Navigate to the systemd configuration directory: cd /etc/systemd/system Create a new service file for your Minecraft server: nano minecraft.service Add the following configuration to the file: [Unit] Description=Minecraft Server After=network.targe...