mars/systemd-testing/mars.service

27 lines
526 B
SYSTEMD
Raw Normal View History

2018-05-06 18:01:08 +00:00
[Unit]
Description=MARS block layer HA (kernel module)
Documentation=https://github.com/schoebel/mars/docu/mars-user-manual.pdf
2020-12-14 19:37:58 +00:00
## Markers for the template processor
# ALWAYS_START
BindsTo=mars.mount
After=mars.mount
2018-05-06 18:01:08 +00:00
RequiresMountsFor=/mars/uuid
2020-12-14 19:37:58 +00:00
Wants=network-online.target
2018-05-06 18:01:08 +00:00
StopWhenUnneeded=false
IgnoreOnIsolate=true
[Service]
Type=oneshot
2020-12-14 19:37:58 +00:00
# Important for avoiding failures: do not send any signals
KillMode=none
2018-05-06 18:01:08 +00:00
RemainAfterExit=yes
ExecStart=/sbin/modprobe mars
ExecStop=/sbin/rmmod mars
[Install]
WantedBy=mars.mount