mdadm/mdmonitor.service

22 lines
638 B
SYSTEMD
Raw Normal View History

2020-01-11 15:03:43 +08:00
# This file is part of mdadm.
#
# mdadm is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
2019-12-31 22:19:03 +08:00
[Unit]
2020-01-11 15:03:43 +08:00
Description=MD array monitor
DefaultDependencies=no
ConditionPathExists=/run
2019-12-31 22:19:03 +08:00
[Service]
Type=forking
PIDFile=/var/run/mdadm/mdadm.pid
Environment= MDADM_MONITOR_ARGS="--scan --syslog"
2020-01-11 15:03:43 +08:00
EnvironmentFile=-/etc/sysconfig/mdadm
ExecStart=/sbin/mdadm --monitor $MDADM_MONITOR_ARGS -f --pid-file=/var/run/mdadm/mdadm.pid
2019-12-31 22:19:03 +08:00
[Install]
WantedBy=multi-user.target