Timeline for Set systemd service to execute after fstab mount
Current License: CC BY-SA 4.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 22, 2024 at 13:39 | comment | added | mrexodia | To add the after in the automatically-generated systemd mount, use x-systemd.requires=after-my.service (see manpages.debian.org/testing/systemd/systemd.mount.5.en.html for details). You need to run systemctl daemon-reload for these changes to apply. | |
| S Mar 17, 2023 at 17:30 | history | suggested | Eddie C. | CC BY-SA 4.0 | Minor formatting |
| Mar 14, 2023 at 9:35 | review | Suggested edits | |||
| S Mar 17, 2023 at 17:30 | |||||
| Sep 15, 2022 at 21:58 | comment | added | bitofagoob | Regardless of the wibblers in the comments, I found this to be a great answer. I came in looking for a quick "systemd wait until.." hack and I left with slightly more knowledge than I bargained for. Bravo. | |
| Dec 5, 2021 at 10:50 | comment | added | Mihail Malostanidis | @damn-vegetables feel free to edit the answer for clarity regarding the unit name | |
| Aug 8, 2021 at 18:50 | comment | added | hudac | For some reason it doesn't work for me. I'm trying: After=systemd-udevd mnt-usb23.mount and also RequiresMountsFor=/mnt/usb23. But it doesn't work. | |
| Apr 5, 2021 at 16:46 | comment | added | nmgeek | This answer is incomplete. You also need to add the mount unit to the Requires= definition. See answer below. | |
| Oct 30, 2020 at 14:58 | comment | added | Damn Vegetables | Isn't it better to use something like mnt-[disk name].mount instead of mnt-wibble.mount in the answer so that users would not type that exact name? | |
| S Nov 5, 2019 at 16:36 | history | suggested | Thomas8 | CC BY-SA 4.0 | integrate good comment in aswer |
| Nov 5, 2019 at 16:23 | review | Suggested edits | |||
| S Nov 5, 2019 at 16:36 | |||||
| Jul 5, 2019 at 17:03 | comment | added | rogerdpack | For followers, "wibble" is just a dummy name, like "foobar" | |
| Apr 13, 2017 at 12:37 | history | edited | CommunityBot | replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/ | |
| Dec 6, 2015 at 16:11 | history | bounty awarded | P A N | ||
| Dec 6, 2015 at 16:11 | vote | accept | P A N | ||
| Dec 5, 2015 at 15:28 | history | answered | JdeBP | CC BY-SA 3.0 |