mirror of
https://github.com/schoebel/mars
synced 2025-02-03 13:51:45 +00:00
userspace: add basic systemd unit
First try. May need some improvements in future.
This commit is contained in:
parent
838c98ca6d
commit
bb6b65a002
13
userspace/systemd/mars.service
Normal file
13
userspace/systemd/mars.service
Normal file
@ -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
Block a user