diff options
Diffstat (limited to 'meta/recipes-extended/mdadm/files/mdmonitor.service')
-rw-r--r-- | meta/recipes-extended/mdadm/files/mdmonitor.service | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/files/mdmonitor.service b/meta/recipes-extended/mdadm/files/mdmonitor.service new file mode 100644 index 0000000000..bd243b4498 --- /dev/null +++ b/meta/recipes-extended/mdadm/files/mdmonitor.service | |||
@@ -0,0 +1,19 @@ | |||
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=Software RAID monitoring and management | ||
10 | ConditionPathExists=/etc/mdadm.conf | ||
11 | |||
12 | [Service] | ||
13 | Type=forking | ||
14 | PIDFile=/var/run/mdadm/mdadm.pid | ||
15 | EnvironmentFile=-/etc/sysconfig/mdmonitor | ||
16 | ExecStart=/sbin/mdadm --monitor --scan -f --pid-file=/var/run/mdadm/mdadm.pid | ||
17 | |||
18 | [Install] | ||
19 | WantedBy=multi-user.target | ||