2019-12-03 09:27:48 +00:00
|
|
|
@eval{%let{mntpath}{%subst{%{mntname}}{-}{/}}}
|
2019-03-01 21:41:16 +00:00
|
|
|
[Unit]
|
2019-12-03 09:27:48 +00:00
|
|
|
Description=MARS local mount on /@{mntpath}/@{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}
|
2019-12-03 09:27:48 +00:00
|
|
|
ConditionPathIsDirectory=/@{mntpath}/@{res}
|
2019-03-01 21:41:16 +00:00
|
|
|
|
|
|
|
[Mount]
|
|
|
|
What=/dev/mars/@{res}
|
2019-12-03 09:27:48 +00:00
|
|
|
Where=/@{mntpath}/@{res}
|
2019-03-01 21:41:16 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=mars.service
|