userspace: add basic systemd unit

First try. May need some improvements in future.
This commit is contained in:
Thomas Schoebel-Theuer 2016-04-12 10:52:57 +02:00
parent 838c98ca6d
commit bb6b65a002
1 changed files with 13 additions and 0 deletions

View 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