Skip to content

Commit 4eb22ce

Browse files
committed
update
1 parent 4345eea commit 4eb22ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2025-07-07-systemd remounting-service-.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ category: "General"
66
tags: "lxc"
77
---
88

9-
In `systemd`, you can create an remount unit to ensure share stay mounted. This would work perfectly, exepct, LXC does not support this `systemd` unit. So instead I created a service that runs a script, and a timer. Like a cron, but still using `systemd`
9+
In `systemd`, you can create an remount unit to ensure share stay mounted. This would work perfectly, except, LXC does not support this `systemd` unit. So instead I created a service that runs a script, and a timer to trigger it. Like a cron, but still using `systemd`.
1010

1111
It works by adding a file named `unmounted` to the mount folder anchor. When the share is unmounted, this file will be visible. We can test for the file and remount when it's found.
1212

0 commit comments

Comments
 (0)