2019-03-01 21:41:16 +00:00
|
|
|
@eval{%let{mount}{%subst{%{unit}}{-}{/}}}
|
|
|
|
[Unit]
|
|
|
|
Description=MARS local mount on /@{mount}/@{res}
|
2019-11-05 18:51:22 +00:00
|
|
|
Documentation=https://github.com/schoebel/mars/docu/mars-user-manual.pdf
|
2019-03-01 21:41:16 +00:00
|
|
|
Requires=mars.service
|
|
|
|
After=mars.service
|
|
|
|
|
|
|
|
ConditionPathIsSymbolicLink=/mars/resource-@{res}/systemd-want
|
|
|
|
ConditionPathExists=/mars/resource-@{res}/userspace/systemd-want-@{host}
|
|
|
|
ConditionPathExists=/dev/mars/@{res}
|
|
|
|
ConditionPathIsDirectory=/@{mount}/@{res}
|
|
|
|
|
|
|
|
[Mount]
|
|
|
|
What=/dev/mars/@{res}
|
|
|
|
Where=/@{mount}/@{res}
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=mars.service
|