diff options
author | NeilBrown <neilb@suse.de> | 2010-02-04 06:31:49 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-02-04 06:47:28 +0100 |
commit | 5d4d1b26d3da8b489ed7e2f5a38f7d90b7f4008f (patch) | |
tree | 86261d4f1521d7953bdbde959fd96bd0fb744d9c /msg.c | |
parent | Having single function to read mdmon pid file. (diff) | |
download | mdadm-5d4d1b26d3da8b489ed7e2f5a38f7d90b7f4008f.tar.xz mdadm-5d4d1b26d3da8b489ed7e2f5a38f7d90b7f4008f.zip |
mdmon: allow pid to be stored in different directory.
/var/run probably doesn't persist from early boot.
So if necessary, store in in /lib/init/rw or somewhere else
that does persist.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'msg.c')
-rw-r--r-- | msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -147,7 +147,7 @@ int connect_monitor(char *devname) int pos; char *c; - pos = sprintf(path, "/var/run/mdadm/"); + pos = sprintf(path, "%s/", VAR_RUN); if (is_subarray(devname)) { devname++; c = strchr(devname, '/'); |