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

19 lines
515 B
SYSTEMD
Raw Normal View History

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