diff options
Diffstat (limited to 'meta/recipes-core/volatile-binds/files/volatile-binds.service.in')
-rw-r--r-- | meta/recipes-core/volatile-binds/files/volatile-binds.service.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-core/volatile-binds/files/volatile-binds.service.in b/meta/recipes-core/volatile-binds/files/volatile-binds.service.in new file mode 100644 index 0000000000..32be5b4425 --- /dev/null +++ b/meta/recipes-core/volatile-binds/files/volatile-binds.service.in | |||
@@ -0,0 +1,19 @@ | |||
1 | [Unit] | ||
2 | Description=Bind mount volatile @where@ | ||
3 | DefaultDependencies=false | ||
4 | Before=local-fs.target | ||
5 | RequiresMountsFor=@whatparent@ @whereparent@ | ||
6 | ConditionPathIsReadWrite=@whatparent@ | ||
7 | ConditionPathExists=@where@ | ||
8 | ConditionPathIsReadWrite=!@where@ | ||
9 | |||
10 | [Service] | ||
11 | Type=oneshot | ||
12 | RemainAfterExit=Yes | ||
13 | StandardOutput=syslog | ||
14 | TimeoutSec=0 | ||
15 | ExecStart=/sbin/mount-copybind @what@ @where@ | ||
16 | ExecStop=/sbin/umount @where@ | ||
17 | |||
18 | [Install] | ||
19 | WantedBy=local-fs.target | ||