fix(services): remove Quadlet files in stopped state #18

Merged
rohrschacht merged 3 commits from fix/stopped-remove-quadlets into main 2026-06-18 20:00:14 +00:00
Collaborator

Problem

After a server reboot, services with state: stopped came back online. Quadlet files were still in ~/.config/containers/systemd/ so Podmans systemd generator recreated the units on boot.

Fix

  1. Skip Quadlet deployment for stopped
  2. Remove Quadlet directory after stopping the service
  3. Daemon-reload so systemd picks up the change

Everything else (user, btrfs, secrets, linger, traefik route) stays intact for quick re-activation.

## Problem After a server reboot, services with state: stopped came back online. Quadlet files were still in ~/.config/containers/systemd/ so Podmans systemd generator recreated the units on boot. ## Fix 1. Skip Quadlet deployment for stopped 2. Remove Quadlet directory after stopping the service 3. Daemon-reload so systemd picks up the change Everything else (user, btrfs, secrets, linger, traefik route) stays intact for quick re-activation.
When state=stopped, Quadlet files were still deployed to
~/.config/containers/systemd/. After a server reboot, Podman's
systemd generator would re-create service units from these files,
causing stopped services to come back online.

Fix: skip Quadlet deployment for stopped, remove the Quadlet
directory after stopping the service, and daemon-reload so systemd
picks up the change.
The directory removal task ran unconditionally for state=stopped,
inconsistent with the daemon-reload task and the file's conventions.
Now both tasks require service_user_exists.rc == 0.
rohrschacht deleted branch fix/stopped-remove-quadlets 2026-06-18 20:00:14 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rohrschacht/netcup-setup!18
No description provided.