btrfsmaintenance icon indicating copy to clipboard operation
btrfsmaintenance copied to clipboard

Switch btrfs-* services to Type=exec

Open karlmistelberger opened this issue 1 year ago • 2 comments

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

karlmistelberger avatar Mar 17 '24 06:03 karlmistelberger

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

What's the trouble?

lkraav avatar Mar 17 '24 10:03 lkraav

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:~ # 

karlmistelberger avatar Aug 11 '24 21:08 karlmistelberger