Linux timeout: Put a Deadline on Scheduled Jobs
Use GNU timeout to limit Linux scheduled jobs, handle exit codes correctly, and escalate stuck processes without confusing a stopped task with a successful one.
19 articles
Use GNU timeout to limit Linux scheduled jobs, handle exit codes correctly, and escalate stuck processes without confusing a stopped task with a successful one.
Compare disk swap, zram, and zswap for a small Linux VPS. Learn what each can fix, what it cannot, and how to check memory pressure before changing settings.
Prevent Linux backup jobs from filling your root disk when a backup drive is missing. Add mount checks, systemd dependencies, and a safe failure-path test.
Diagnose Linux no space left on device errors with df, du, and inode checks. Find the full filesystem before deleting Docker data or resizing your VPS disk.
Compare block, object, and file storage for a self-hosted VPS. Match databases, uploads, and backups to the right interface without creating a fragile storage setup.
Verify SSH host keys before trusting a new VPS, handle known_hosts warnings safely, and pin server identity for unattended backups without disabling checks.
Stop overlapping backup jobs with Linux flock. Add a shared lock to cron scripts, test contention safely, and avoid lock-file mistakes on your home server.
Harden Linux services with systemd sandboxing. Limit filesystem writes, drop capabilities, and test restrictions without chasing a perfect security score.
Configure Docker Compose graceful shutdown with stop_grace_period, test signal handling safely, and avoid killing workers midway through a job during updates.
Compare ARM vs x86 VPS hosting for Docker apps, image compatibility, backups, and migration. Choose your server architecture without buying a debugging project.
Restrict SSH tunnel keys with OpenSSH so a private admin tool stays reachable without granting shell access. Includes setup, denial tests, and rollback steps.
Replace a quiet cron entry with a systemd timer. Schedule homelab jobs, catch missed runs, inspect failures, and test a safe example before touching backups.
Compare Proxmox, Incus, and Docker for a homelab: isolation, storage, backups, hardware access, and the simplest architecture for your self-hosted applications.
Use auditd to trace changes to SSH settings and Docker Compose files on your Linux VPS, with persistent rules, a safe test, and practical investigation steps.
Set Docker Compose resource limits for memory, CPU, and processes. Protect a small VPS from noisy containers, verify the settings, and avoid restart loops.
Stop SSH'ing into servers to run the same commands. Learn how to use Ansible to automate server setup, Docker deployments, and security hardening — all from one playbook.
I ran my entire homelab on Podman for 6 months after 5 years on Docker. Here's what's better, what's worse, and whether you should care.
SSH keys, UFW firewall, Fail2ban, auto-updates — the exact steps I run on every new VPS before deploying anything. Copy-paste ready.
No Linux experience needed. I'll walk you through buying a VPS, installing Docker, setting up SSL, and deploying your first app — all in under an hour.