Skip to content

Commit 4345eea

Browse files
committed
update
1 parent ad5951e commit 4345eea

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ category: "General"
66
tags: "lxc"
77
---
88

9-
## `systemd` Auto-mounting Service
10-
119
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`
1210

1311
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.

0 commit comments

Comments
 (0)