diff options
author | NeilBrown <neilb@suse.de> | 2010-02-08 04:30:46 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-02-08 07:26:18 +0100 |
commit | fa716c83c5be8093e663e260e46e73ea9ad6facf (patch) | |
tree | d114ff6697fd4c85c090facb2a13ba52d19c1eeb /mdmon.h | |
parent | mdmon: don't monitor /proc/mounts to decide when to create .pid file. (diff) | |
download | mdadm-fa716c83c5be8093e663e260e46e73ea9ad6facf.tar.xz mdadm-fa716c83c5be8093e663e260e46e73ea9ad6facf.zip |
mdmon: insist on creating .pid file at startup.
Now that we don't "mdadm --takeover" until /var/run is writable
there is no need to continually try to create files in there.
So only create these files at startup and fail if they cannot be
made. This means that to start an array with externally managed
metadata, either /var/run or ALT_RUN (e.g. /lib/init/rw) must be
writable. To 'takeover' from a previous mdmon instance, /var/run
must be writable.
This means we don't need to worry about SIGHUP (which was once used to
tell us it was time to create .pid) and SIGALRM.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdmon.h')
-rw-r--r-- | mdmon.h | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -65,9 +65,6 @@ extern struct md_generic_cmd *active_cmd; void remove_pidfile(char *devname); void do_monitor(struct supertype *container); void do_manager(struct supertype *container); -int make_control_sock(char *devname); -int make_pidfile(char *devname); -extern int socket_hup_requested; extern int sigterm; int read_dev_state(int fd); |