mirror of https://github.com/schoebel/mars
15 lines
415 B
SYSTEMD
15 lines
415 B
SYSTEMD
|
@eval{%let{mntpath}{%subst{%{mntname}}{-}{/}}}
|
||
|
[Unit]
|
||
|
Description=MARS dummy process running on /@{mntpath}/@{res}
|
||
|
Documentation=https://github.com/schoebel/mars/docu/mars-user-manual.pdf
|
||
|
BindsTo=@{mntname}-@escvar{res}.mount
|
||
|
After=@{mntname}-@escvar{res}.mount
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
ExecStart=/etc/marsadm/systemd-templates/MARS-load-occupy.sh /@{mntpath}/@{res}
|
||
|
KillMode=process
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=mars.service
|