]> git.ipfire.org Git - thirdparty/mdadm.git/blob - systemd/mdmonitor.service
c7cff3e497ecf443ac28c4db714961e1dd008225
[thirdparty/mdadm.git] / systemd / mdmonitor.service
1 # This file is part of mdadm.
2 #
3 # mdadm is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7
8 [Unit]
9 Description=MD array monitor
10 DefaultDependencies=no
11
12 [Service]
13 Environment= MDADM_MONITOR_ARGS=--scan
14 EnvironmentFile=-/run/sysconfig/mdadm
15 ExecStartPre=-/usr/lib/systemd/scripts/mdadm_env.sh
16 ExecStart=BINDIR/mdadm --monitor $MDADM_MONITOR_ARGS