Recently, I created a simple Python server to control a Sky Q box and an LG WebOS television programmatically. The goal was to build a straightforward interface for someone who finds modern technology overwhelming. The kind of person who would strugg...
Every DevOps journey has its hiccups—here’s one I ran into while deploying my backend API. The Problem My FastAPI backend needed to connect to MongoDB using a URI like this: mongodb+srv://username:password@cluster.mongodb.net/mydb?retryWrites=true&w=...
If you've ever managed a Linux system, you've likely encountered systemd. It's the default init system for most modern Linux distributions, responsible for starting and managing system processes. Let's break it down into simple terms and explore how ...
System Run Levels Main Run Level 0 » Shutdown (or halt) the system 1 » Single-user mode; usually aliased as s or S 6 » Reboot the system Other Run Level 2 » Multiuser mode without networking 3 » Multiuser mode with networking 5 » Multiuser mo...
When my friend approached me about deploying his Next.js applications on a tiny VPS (2vCPU, 2GB RAM) without Docker, I initially raised an eyebrow. But sometimes constraints breed creativity, and this deployment strategy turned out to be quite elegan...
Creating a SYSTEMD service To run a command in the background, we need to define that command as a service. And for this we create a service unit file for that. Let’s make a service unit file called project-mercury.service, and we need to create it u...
Back to home Monitoring Systems with Monit Framework In system administration, a common principle is that a good system administrator doesn't need to frequently configure the system. Instead, they set it up once and then focus on monitoring and maint...
NOTE: This is a general guide but some commands are specific to debian. Introduction When running a program as a service using the systemd utility in Linux, proper configuration is essential. Many applications, like Tomcat, require setting up systemd...
1️⃣ Check All Active and Inactive Services systemctl list-units --type=service --all 🔹 This shows all services, whether active, inactive, or failed. 2️⃣ Check All Active Timers systemctl list-timers --all 🔹 This displays all systemd timers, incl...
To create a systemd service that runs /usr/local/sbin/custom-reboot.sh once, exactly 3 minutes after boot, follow these steps: Step 1: Create the Systemd Service File Open a terminal and create a new systemd service file: sudo nano /etc/systemd/syst...