mars/systemd/mars.service
2019-03-06 07:03:50 +01:00

19 lines
437 B
Desktop File

[Unit]
Description=MARS block layer HA (kernel module)
Documentation=https://github.com/schoebel/mars/docu/mars-manual.pdf
RequiresMountsFor=/mars/uuid
StopWhenUnneeded=false
IgnoreOnIsolate=true
ConditionPathIsSymbolicLink=/mars/uuid
[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