mars/systemd/^{mntname}-@{res}.mount

19 lines
526 B
SYSTEMD
Raw Normal View History

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