Skip to content

Conversation

karlmistelberger
Copy link
Contributor

Type=simple causes trouble with After=... ordering of systemd services. Type=exec will repair ordering issue.

@lkraav
Copy link

lkraav commented Mar 17, 2024

Type=simple causes trouble with After=... ordering of systemd services. Type=exec will repair ordering issue.

What's the trouble?

@karlmistelberger
Copy link
Contributor Author

The behaviour is explained here: https://unix.stackexchange.com/questions/705839/systemd-firewall-service-unit-type-exec-or-type-oneshot

Mutually exclusive services will collide when declared simple. The will chain if declared exec or oneshot:

6700k:~ # grep -r =oneshot /etc/
/etc/systemd/system/dup.service:Type=oneshot
/etc/systemd/system/btrbk.service:Type=oneshot
/etc/systemd/system/btrfs-scrub.service.d/override.conf:Type=oneshot
/etc/systemd/system/btrfs-balance.service.d/override.conf:Type=oneshot
6700k:~ # 

@kdave
Copy link
Owner

kdave commented Aug 18, 2025

Can you please describe it in more detail what's the problem here? Changing the unit type will affect everybody I'd like to be sure this works as I don't know enough about the unit types.

@kdave kdave added this to the v0.5.3 milestone Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants