systemd targets vs runlevels on a VPS
systemd targets replaced runlevels, and systemd 258 removed even the numbered aliases. See what a target is, and how to change what your VPS boots into.
Keeping a service running across reboots and crashes. Units, timers, logs, and why a service that works by hand fails under systemd.
Filtering by topic #systemd · clear
systemd targets replaced runlevels, and systemd 258 removed even the numbered aliases. See what a target is, and how to change what your VPS boots into.
A systemd service keeps your program running: start on boot, restart on crash, log to the journal. How to write one, add a timer, and harden it.
Requires, Wants, After, Before, ExecStartPre and the Condition family do different jobs. What each one promises, and how to debug a unit that never runs.
Build a self-hosted stock research agent on a VPS: a market data feed, a DuckDB store, a systemd timer that fires at market close, and an LLM screen.
Deer Workflow puts agent orchestration in reviewable TypeScript. Install it on a VPS with Bun, pin the version, and run one graph headless under systemd.
OpenClaw runs shell commands and browses the web, so a careless setup is dangerous. Harden it on a VPS: unprivileged user, firewall, secrets, systemd.
Pull US daily market data into SQLite on your VPS with a free API key: read the schema, send one SQL query, handle quota errors, and run it on a systemd timer.
systemd 260 removed the bridge that started init.d scripts and rc.local at boot. Audit your 26.04 server and convert each script to a native unit first.
ollama pull downloads a model and stops. ollama run downloads it, then opens a chat. Where the files land, why they fill a VPS root disk, how to move them.
Your unit says active but the daemon is gone. Pick the right systemd Type= for simple, exec, forking, oneshot and notify, and find the real main PID.
Read systemctl status before anything else. What 203/EXEC and 226/NAMESPACE mean, and why a unit can start cleanly and exit one second later.
Run KiroCrew as a pinned container on your own VPS so memory and schedules survive reboots. Docker, systemd, SSH access, backups and rollback.
A dnf update leaves the old kernel and old libraries running on Rocky and Alma. Use needs-restarting to see what needs a reboot and what needs a restart.
Run Model Context Protocol servers on your own VPS so AI agents get real tools: stdio and remote HTTP transports, systemd, TLS, auth, and every failure mode.
A capped process can still stall your whole VPS. Set MemoryHigh, MemoryMax, CPUQuota and TasksMax on a systemd unit, and read the OOM kill after.
Debian ships unattended-upgrades switched off. Enable it properly, read Origins-Pattern, check the apt-daily timers, and prove it patches itself.
On Ubuntu 24.04 a plain apt install already bans SSH brute force. The fail2ban-client status sshd output proves it, plus the fix when Total failed stays at 0.
What a game server VPS really needs: fast single core speed and enough RAM. Sizing, ports, systemd restarts, backups, and why latency is about location.
Set the Tailscale operator user once, then run serve and funnel from a deploy account without sudo. What the setting changes, and what still needs root.
Restart= watches only the main process, so a dead child inside the same cgroup is invisible. How Type=, restart limits and the journal really work.
Which self-hosted secrets manager belongs on one VPS: OpenBao, Infisical, SOPS with age, systemd credentials, or a locked down env file, and what each costs.
Build llama-server from a pinned tag, serve GGUF models on the OpenAI-compatible API, bind it to localhost, and run it under systemd with memory limits.
Run dsh, the DeepSeek Harness, as a systemd service on a VPS: dedicated user, pinned version, Restart rules, journalctl logs, and an SSH tunnel to the UI.
Two clones sharing one /etc/machine-id can fight over a DHCP lease. Regenerate it safely, and truncate it before you snapshot a golden image.
When SSH drops, the kernel sends SIGHUP and your job dies. Use nohup, disown, tmux or systemd-run to keep it alive, and know which one fits the job.
Configure dnf-automatic on Rocky Linux and AlmaLinux: security-only mode, the systemd timer, email alerts, and a reboot policy that avoids surprises.
Podman runs containers with no daemon and rootless by default. What that changes on a rented server: compose files, quadlets, ports and volume ownership.
Run Iva, a self-hosted Telegram AI assistant, on a small VPS: no open ports, no domain, systemd user services and an Obsidian vault you back up.
What SysV init could not do, what Upstart and launchd tried first, why every distribution moved to systemd in four years, and which objections were right.
Set up WireGuard on your own Linux VPS: key generation, wg0.conf, IP forwarding, NAT, AllowedIPs semantics, DNS, and the handshake failures that bite.
Run ntfy on your own VPS behind TLS with Docker Compose. Lock topics with users and ACLs, then alert from cron and systemd OnFailure units.
Ollama unloads a model after 5 minutes idle, so the next request waits for a reload. Set keep_alive in a systemd override so it survives reboots, then preload.
Make Docker Compose services come back after a reboot: restart policies, why on-failure does not survive one, and when a systemd unit is right.
Your VPS has three clocks and only one matters. Find the drift, read chronyc and timedatectl output, and fix the sync that broke your 2FA login.
Run Ollama as a rootless Podman container on a VPS: a dedicated user, lingering, a Quadlet unit that survives reboot, SELinux labels, and a closed port.
ProtectSystem, PrivateTmp, DynamicUser and NoNewPrivileges explained: what each directive blocks, what it breaks, and how to debug a unit that stops starting.
Six server jobs Claude does well: reading a failed unit's logs, drafting systemd units, reviewing nginx and Compose files, plus what you must never paste.
Hermes needs no GPU: the model runs elsewhere, so a small VPS is plenty. Run it as its own user with ProtectSystem=strict in systemd, and cover IPv6 in UFW.
sudo apt install certbot python3-certbot-nginx, then one certbot --nginx run for a Let's Encrypt cert. Plus apt vs snap and the port 80 renewal timeout.
Run Orca's coding agents on a VPS so they keep working when your laptop sleeps: orca serve on headless Ubuntu, under systemd and firewalled from the internet.
Devuan, Alpine, Void, Artix, Gentoo, Chimera and Slackware ship without systemd. What a server admin gives up, and who has a real reason to switch.
How much monitoring does one VPS really need? Compare htop, Glances, Netdata, Beszel and Prometheus by what each costs to run, and when to move up.
Your agent wrote the app. Now keep it running: systemd supervision, a reverse proxy with TLS, an env file for secrets, backups, and safe redeploys.
Add a second restic repository without doubling your risk: separate init and password, back up twice or use restic copy, split timers, tested restores.
Run Django in production on Ubuntu 24.04: uv or venv, Gunicorn on a Unix socket, a systemd unit, Nginx for TLS and static files, plus what breaks first.
Install Listmonk on Ubuntu 24.04 with Postgres, config.toml, a systemd unit and TLS, then connect SMTP and understand what deliverability really costs.
What a trading bot really needs from a VPS: restart discipline under systemd, a correct clock, safe API keys, heartbeats, and honest latency limits.
Running a service as root turns one bug into full server access. Give each service its own unprivileged account, or let systemd do it with DynamicUser.