mdmon: fork and run as a daemon.