2018-05-06 18:01:08 +00:00
|
|
|
[Unit]
|
|
|
|
Description=MARS block layer HA (kernel module)
|
2019-11-05 18:51:22 +00:00
|
|
|
Documentation=https://github.com/schoebel/mars/docu/mars-user-manual.pdf
|
2018-05-06 18:01:08 +00:00
|
|
|
RequiresMountsFor=/mars/uuid
|
|
|
|
StopWhenUnneeded=false
|
|
|
|
IgnoreOnIsolate=true
|
|
|
|
|
2019-03-01 21:41:16 +00:00
|
|
|
ConditionPathIsSymbolicLink=/mars/uuid
|
|
|
|
|
2018-05-06 18:01:08 +00:00
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
|
|
|
#ExecStartPre=if ! mountpoint /mars; then mount /dev/*/mars /mars; fi
|
|
|
|
ExecStart=/sbin/modprobe mars
|
|
|
|
ExecStop=/sbin/rmmod mars
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=mars.mount
|