diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-09-15 20:58:43 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-09-15 20:58:43 -0700 |
commit | 295646b3d59c7d8d8c389ff320b30e61552ba331 (patch) | |
tree | 150b20b04a0c112123e35cbca62e40ac7d525918 /mdmon.h | |
parent | 313a4a82f130e6668ba0f4550200662e168aa945 (diff) |
mdmon: recreate socket/pid file on SIGHUP
Allow mdmon to start while /var/run/mdadm is readonly. Later a SIGHUP
can trigger mdmon to drop its pid and socket once /var/run/mdadm is
writable. Of course one needs the pid to send a HUP, that can be stored
in a distribution specific rw-init directory... For now, rely on a
killall -HUP mdmon to get the files dumped.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'mdmon.h')
-rw-r--r-- | mdmon.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -55,6 +55,9 @@ 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, int o_excl); +extern int socket_hup_requested; int read_dev_state(int fd); int get_resync_start(struct active_array *a); |