summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-08-01 06:04:07 +0200
committerNeilBrown <neilb@suse.de>2013-08-01 06:04:07 +0200
commit879982efa90c8cf6b7afc708316cf47c4247bfe3 (patch)
tree16f986286293f83ddc1bd0afd42e3eefb3783fd9 /mdadm.c
parentGrow: exit background thread cleanly on SIGTERM. (diff)
downloadmdadm-879982efa90c8cf6b7afc708316cf47c4247bfe3.tar.xz
mdadm-879982efa90c8cf6b7afc708316cf47c4247bfe3.zip
Don't lie to systemd about mdadm's status.
Telling systemd that mdadm was started from the initrd is often a lie and never necessary. Now that the reshape monitoring thread handles SIGTERM gracefully it is OK for system to kill and mdadm that it finds running. mdmon still have a bit of a question mark over it so I won't remove the '@' from there just yet. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/mdadm.c b/mdadm.c
index a46a716b..86a4fad2 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -116,13 +116,6 @@ int main(int argc, char *argv[])
ident.container = NULL;
ident.member = NULL;
- /*
- * set first char of argv[0] to @. This is used by
- * systemd to signal that the task was launched from
- * initrd/initramfs and should be preserved during shutdown
- */
- argv[0][0] = '@';
-
while ((option_index = -1) ,
(opt=getopt_long(argc, argv,
shortopt, long_options,