mirror of https://github.com/schoebel/mars
userspace: add basic systemd unit
First try. May need some improvements in future.
This commit is contained in:
parent
838c98ca6d
commit
bb6b65a002
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=MARS block layer HA (kernel module)
|
||||
Documentation=https://github.com/schoebel/mars/docu/mars-manual.pdf
|
||||
RequiresMountsFor=/mars/uuid
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=1
|
||||
ExecStart=/sbin/modprobe mars
|
||||
ExecStop=/sbin/rmmod mars
|
||||
|
||||
[Install]
|
||||
WantedBy=dev-mars-@.device
|
Loading…
Reference in New Issue