67ee238316
As mdmon doesn't inherit environment from mdadm when it is started by system, it cannot inherit IMSM_NO_PLATFORM. But if an imsm array as assembled then mdmon really should handle it whether there is a platform present or not. So always set this var. Signed-off-by: NeilBrown <neilb@suse.de>
22 lines
627 B
Desktop File
22 lines
627 B
Desktop File
# 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.
|
|
|
|
[Unit]
|
|
Description=MD Metadata Monitor on /dev/%I
|
|
DefaultDependencies=no
|
|
Before=initrd-switch-root.target
|
|
|
|
[Service]
|
|
# mdmon should never complain due to lack of a platform,
|
|
# that is mdadm's job if at all.
|
|
Environment=IMSM_NO_PLATFORM=1
|
|
ExecStart=/sbin/mdmon --foreground %I
|
|
StandardInput=null
|
|
StandardOutput=null
|
|
StandardError=null
|
|
KillMode=none
|