mirror of
https://github.com/schoebel/mars
synced 2024-12-22 06:40:52 +00:00
27 lines
526 B
SYSTEMD
27 lines
526 B
SYSTEMD
|
[Unit]
|
||
|
Description=MARS block layer HA (kernel module)
|
||
|
Documentation=https://github.com/schoebel/mars/docu/mars-user-manual.pdf
|
||
|
|
||
|
## Markers for the template processor
|
||
|
# ALWAYS_START
|
||
|
|
||
|
BindsTo=mars.mount
|
||
|
After=mars.mount
|
||
|
RequiresMountsFor=/mars/uuid
|
||
|
|
||
|
Wants=network-online.target
|
||
|
|
||
|
StopWhenUnneeded=false
|
||
|
IgnoreOnIsolate=true
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
# Important for avoiding failures: do not send any signals
|
||
|
KillMode=none
|
||
|
RemainAfterExit=yes
|
||
|
ExecStart=/sbin/modprobe mars
|
||
|
ExecStop=/sbin/rmmod mars
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=mars.mount
|