I'm trying to run a systemd service at shutdown: it kinda works (it gets called) but it runs after filesystems are unmounted, which is not what I need. So I tried with
Before=umount.target
and WantedBy=umount.target
without any luck (filesystems are unmounted before running the service). When I say "filesystems" I mean all but the root.
Is there any other target to pay attention to?
Asked by user3534974
(177 rep)
Jan 23, 2021, 10:51 PM
Last activity: Jun 16, 2025, 09:08 AM
Last activity: Jun 16, 2025, 09:08 AM